mirror of
https://github.com/vercel/commerce.git
synced 2025-05-21 00:46:59 +00:00
Better skeleton
This commit is contained in:
parent
56bb3544a6
commit
22f498c0de
@ -2,14 +2,17 @@ import Grid from 'components/grid';
|
|||||||
|
|
||||||
export default function Loading() {
|
export default function Loading() {
|
||||||
return (
|
return (
|
||||||
<Grid className="grid-cols-2 lg:grid-cols-3">
|
<>
|
||||||
{Array(12)
|
<div className="mb-4 h-6" />
|
||||||
.fill(0)
|
<Grid className="grid-cols-2 lg:grid-cols-3">
|
||||||
.map((_, index) => {
|
{Array(12)
|
||||||
return (
|
.fill(0)
|
||||||
<Grid.Item key={index} className="animate-pulse bg-neutral-100 dark:bg-neutral-800" />
|
.map((_, index) => {
|
||||||
);
|
return (
|
||||||
})}
|
<Grid.Item key={index} className="animate-pulse bg-neutral-100 dark:bg-neutral-800" />
|
||||||
</Grid>
|
);
|
||||||
|
})}
|
||||||
|
</Grid>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user