Created
June 28, 2022 08:59
-
-
Save azz0r/707c1994c072d4a3b80ccbb47ac6189c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from "react"; | |
import Skeleton from '@mui/material/Skeleton'; | |
import { Box, Grid } from "@mui/material"; | |
const skeletonProps = { | |
animation: "wave", | |
width: "100%", | |
variant: "rect" | |
}; | |
export default function Loading() { | |
return ( | |
<> | |
<Box my="16px" width="100%"> | |
<Skeleton {...skeletonProps} height="4vh" /> | |
</Box> | |
<Grid container spacing={2}> | |
<Grid item xs={12} sm={9} md={8} lg={8}> | |
<Skeleton {...skeletonProps} height="50vh" /> | |
</Grid> | |
<Grid item xs={12} sm={3} md={4} lg={4}> | |
<Skeleton {...skeletonProps} height="50vh" /> | |
</Grid> | |
</Grid> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment