-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add loading to the profile and login page
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |