Skip to content

Commit 626457e

Browse files
committed
GridList -> ImageList로 변경
1 parent 2adf091 commit 626457e

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/main/events/google-photos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = () => {
4747
settings.setSync('google-auth', auth)
4848
evt.sender.send('receive-google-connected', true)
4949
fetchImages(evt, null)//
50-
}, () => {
50+
}, (e) => {
5151
console.error(e)
5252
evt.sender.send('receive-message', `오류가 발생했습니다. (${e.message})`)
5353
})

src/renderer/components/editor/plugins/google-photos/PhotoList.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import React, { Component, Fragment } from 'react'
22
import autobind from 'autobind-decorator'
33

44
import {
5-
GridList,
6-
GridListTile,
7-
GridListTileBar,
5+
ImageList, ImageListItem, ImageListItemBar,
86
ListSubheader,
97
IconButton
108
} from '@mui/material'
@@ -66,36 +64,36 @@ class PhotoList extends Component {
6664
}
6765

6866
{images.length > 0 &&
69-
<GridList cols={2} cellHeight={180}>
67+
<ImageList cols={2} cellHeight={180}>
7068
{images.map(item => {
7169
let prevDate = currentDate
7270
currentDate = timestampsToDate(item.timestamp)
7371

7472
let tile = [
75-
<GridListTile key={item.thumbnail}>
73+
<ImageListItem key={item.thumbnail}>
7674
<img src={item.thumbnail} alt={item.title} />
77-
<GridListTileBar
75+
<ImageListItemBar
7876
style={styles.gridTitleBar}
7977
actionIcon={
8078
<IconButton onClick={e => onClick(item)}>
8179
<AddCircleOutline style={styles.buttonIcon} />
8280
</IconButton>
8381
}
8482
/>
85-
</GridListTile>
83+
</ImageListItem>
8684
]
8785

8886
if (prevDate != currentDate) {
8987
tile.unshift(
90-
<GridListTile key={currentDate} cols={2} style={{ height: 'auto' }}>
88+
<ImageListItem key={currentDate} cols={2} style={{ height: 'auto' }}>
9189
<ListSubheader component='div'>{currentDate}</ListSubheader>
92-
</GridListTile>
90+
</ImageListItem>
9391
)
9492
}
9593

9694
return tile
9795
})}
98-
</GridList>
96+
</ImageList>
9997
}
10098

10199
{images.length > 0 && fetching &&

0 commit comments

Comments
 (0)