Init(Core): add project to new repo
This commit is contained in:
22
src/Components/common/LoadingTemplate.jsx
Normal file
22
src/Components/common/LoadingTemplate.jsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import {Box, CircularProgress} from "@mui/material";
|
||||
|
||||
export default function LoadingTemplate({loading, marginLeft, children, className}) {
|
||||
return (
|
||||
<Box className={`w-full ` + className} sx={{ position: 'relative' }}>
|
||||
{children}
|
||||
{loading && (
|
||||
<CircularProgress
|
||||
size={24}
|
||||
sx={{
|
||||
color: "#fff",
|
||||
position: 'absolute',
|
||||
top: '50%',
|
||||
left: '50%',
|
||||
marginTop: '-12px',
|
||||
marginLeft: marginLeft,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user