Skip to content

Commit

Permalink
feat: add loading to the profile and login page
Browse files Browse the repository at this point in the history
  • Loading branch information
pooriaset committed Dec 10, 2024
1 parent 5732505 commit adb6692
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/app/[locale]/(auth)/account/signin/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import {
Box,
Card,
CardActions,
CardContent,
Skeleton,
Stack,
} from '@mui/material';

const loading = () => {
return (
<Card
variant="outlined"
sx={{
p: 2,
}}
>
<CardContent>
<Stack spacing={1}>
<Stack spacing={3} justifyContent="center" alignItems="center">
<Box
sx={{
pt: 2,
}}
>
<Skeleton width={120} height={35} />
</Box>
</Stack>
<Stack spacing={2}>
<Skeleton height={50} />
<Skeleton height={50} />
</Stack>
</Stack>
</CardContent>
<CardActions>
<Skeleton width="100%" height={65} />
</CardActions>
</Card>
);
};

export default loading;
7 changes: 7 additions & 0 deletions src/app/[locale]/(main)/profile/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { CircularProgress, Container } from '@mui/material';

const loading = () => {
return <CircularProgress />;
};

export default loading;

0 comments on commit adb6692

Please sign in to comment.