Skip to content

Commit 556421a

Browse files
committed
list warning fixed
1 parent af8eabb commit 556421a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/SkeletonList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { Box } from "@material-ui/core";
33
import { Skeleton } from "@material-ui/lab";
44

55
export const SkeletonList: React.FunctionComponent = () => {
6+
const list = [1, 2, 3, 4, 5, 6, 7, 8, 9];
67
return (
78
<React.Fragment>
8-
{[...Array(9)].map((i) => (
9-
<Box p={0.5}>
9+
{list.map((i) => (
10+
<Box p={0.5} key={i}>
1011
<Skeleton variant="rect" height={80} />
1112
</Box>
1213
))}

0 commit comments

Comments
 (0)