This commit is contained in:
Malai Raja
2023-12-04 19:05:28 +05:30
parent 2d7eb690a1
commit 743cae09b8
13 changed files with 4795 additions and 1179 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,12 @@
// import React from 'react';
// import Createstaff from 'pages/createstaff'
import { enqueueSnackbar } from 'notistack';
import {
useState,
useEffect,
Fragment
} from 'react';
import { Empty } from 'antd';
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import dayjs from 'dayjs';
@@ -411,7 +413,6 @@ import {
</TableCell>
<TableCell>
<Skeleton animation="wave" />
<Skeleton animation="wave" />
</TableCell>
<TableCell>
<Skeleton animation="wave" />
@@ -437,7 +438,18 @@ import {
</>
}
<TableBody>
{((visibleRows.length == 0) && !loading) &&
<>
<TableCell colSpan={7}>
<Stack width={'100%'} direction={'row'} justifyContent={'center'}>
<Empty />
</Stack>
</TableCell>
{/* <div>empty</div> */}
</>
}
{visibleRows.map((row, index) => {
const isItemSelected = isSelected(row.sno);
@@ -1152,7 +1164,7 @@ import {
let val = localStorage.getItem('tenantid')
// fetchtable();
fetchpercentage(val);
// fetchpercentage(val);
// fetchtableactive();
fetchtableuncovered();
fetchtablecovered(val);
@@ -1705,6 +1717,10 @@ import {
}).catch((err) => {
console.log(err)
setLoading(false)
enqueueSnackbar(err.message, {
variant: 'error', anchorOrigin: { vertical: 'top', horizontal: 'right' },
autoHideDuration: 2000
})
})
} catch (err) {