04122023
This commit is contained in:
File diff suppressed because it is too large
Load Diff
2158
src/pages/nearle/orders/details.js
Normal file
2158
src/pages/nearle/orders/details.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user