up
This commit is contained in:
@@ -95,8 +95,6 @@ export default function Drugs() {
|
||||
setIsLoading: setIsLoading,
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* ------------------------------ handle params ----------------------------- */
|
||||
const [searchParams, setSearchParams] = useSearchParams();
|
||||
const [appliedParams, setAppliedParams] = useState({});
|
||||
@@ -121,7 +119,6 @@ export default function Drugs() {
|
||||
setOrderBy: setOrderBy,
|
||||
};
|
||||
|
||||
|
||||
/* ---------------------------- Get Current Date ---------------------------- */
|
||||
const current = new Date();
|
||||
const date = fDateSuffix(current);
|
||||
@@ -220,11 +217,7 @@ export default function Drugs() {
|
||||
const parameters =
|
||||
Object.keys(appliedParams).length !== 0
|
||||
? appliedParams
|
||||
: Object.fromEntries([
|
||||
...searchParams.entries(),
|
||||
['order', orders.order],
|
||||
['orderBy', orders.orderBy],
|
||||
]);
|
||||
: Object.fromEntries([...searchParams.entries()]);
|
||||
|
||||
const claim = await axios.get(`${corporateValue}/members`, {
|
||||
params: { ...parameters, type: 'claim-report' },
|
||||
@@ -254,12 +247,19 @@ export default function Drugs() {
|
||||
<Container maxWidth={themeStretch ? false : 'xl'}>
|
||||
<Grid container spacing={2}>
|
||||
<Grid item xs={12} lg={6} md={6}>
|
||||
<Typography variant="h6" sx={{marginLeft:'10px'}}> Select Employee</Typography>
|
||||
<Typography variant="h6" sx={{ marginLeft: '10px' }}>
|
||||
{' '}
|
||||
Select Employee
|
||||
</Typography>
|
||||
</Grid>
|
||||
<Grid item xs={12} lg={6} md={6} sx={{ display: 'flex', justifyContent: 'flex-end' }}>
|
||||
<Stack direction='row' alignItems='center'>
|
||||
<Typography variant="inherit" align='right' sx={{ marginRight: '10px' }}>Submission Date</Typography>
|
||||
<Typography variant="subtitle1" align='right' sx={{ marginRight: '10px' }}>{date}</Typography>
|
||||
<Stack direction="row" alignItems="center">
|
||||
<Typography variant="inherit" align="right" sx={{ marginRight: '10px' }}>
|
||||
Submission Date
|
||||
</Typography>
|
||||
<Typography variant="subtitle1" align="right" sx={{ marginRight: '10px' }}>
|
||||
{date}
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Grid>
|
||||
<Grid item xs={12} lg={12} md={12}>
|
||||
|
||||
Reference in New Issue
Block a user