add loader and remove logs

This commit is contained in:
2024-04-15 22:30:49 +03:00
parent 070a6ccbe5
commit 794252ac3b
11 changed files with 377 additions and 254 deletions

23
src/components/Loader.tsx Normal file
View File

@@ -0,0 +1,23 @@
import React from 'react'
import { Box, CircularProgress } from "@mui/material";
export const Loader = () => {
return (
<Box sx={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
width: '100%',
height: '100%',
position: 'fixed',
top: '0px',
left:'0px',
right: '0px',
bottom: '0px',
zIndex: 2,
background: 'rgba(0, 0, 0, 0.4)'
}}>
<CircularProgress color="success" size={25} />
</Box>
)
}