Skip to content

Commit 946fac3

Browse files
committed
chore: change style of categories skeleton in the homepage
1 parent 3e1d0fb commit 946fac3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/[locale]/(main)/(container)/(homepage)/loading.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, Grid, Skeleton } from '@mui/material';
1+
import { Grid, Skeleton, Stack } from '@mui/material';
22

33
const Loading = () => {
44
return (
@@ -11,10 +11,10 @@ const Loading = () => {
1111
{new Array(4).fill(1).map((item, index) => {
1212
return (
1313
<Grid key={index} item xs={12} md={6} lg={4} xl={3}>
14-
<Box>
15-
<Skeleton variant="rectangular" height={120} />
14+
<Stack alignItems="end">
15+
<Skeleton width="100%" variant="rectangular" height={120} />
1616
<Skeleton variant="text" width={60} />
17-
</Box>
17+
</Stack>
1818
</Grid>
1919
);
2020
})}

src/app/[locale]/(main)/(container)/(homepage)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { bestSellingSortOption } from '@/static/sortOptions';
1717
import { Grid } from '@mui/material';
1818

1919
const getSliders = async () => {
20-
await Sleep(5000);
20+
await Sleep(51111000);
2121
const { data } = await getClient().query<GetHomePageSlidersQuery>({
2222
query: GET_HOMEPAGE_SLIDERS,
2323
});

0 commit comments

Comments
 (0)