fix key error in skeleton loaders
This commit is contained in:
@@ -13,8 +13,7 @@ const TeamList = ({ teams, loading = false }: TeamListProps) => {
|
||||
|
||||
if (loading) return <List>
|
||||
{Array.from({ length: 10 }).map((_, i) => (
|
||||
<ListItem py='xs'
|
||||
icon={<Skeleton height={40} width={40} />}
|
||||
<ListItem key={`skeleton-${i}`} py='xs' icon={<Skeleton height={40} width={40} />}
|
||||
>
|
||||
<Skeleton height={35} width={200} />
|
||||
</ListItem>
|
||||
|
||||
Reference in New Issue
Block a user