mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
fix image key in image list item
This commit is contained in:
parent
c47d31703c
commit
ec27a07119
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ export default function StandardImageList() {
|
||||||
<StyledEngineProvider injectFirst>
|
<StyledEngineProvider injectFirst>
|
||||||
<Box className="box">
|
<Box className="box">
|
||||||
<Grid container spacing={1} className="image-list">
|
<Grid container spacing={1} className="image-list">
|
||||||
{itemData.map((item) => (
|
{itemData.map((item, index) => (
|
||||||
<ImageListItem key={item.img}>
|
<ImageListItem key={index}>
|
||||||
<img
|
<img
|
||||||
srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`}
|
srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`}
|
||||||
src={`${item.img}?w=164&h=164&fit=crop&auto=format`}
|
src={`${item.img}?w=164&h=164&fit=crop&auto=format`}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue