This commit is contained in:
Muhammad Fajar
2024-01-03 10:42:22 +07:00
parent 2800da9255
commit 290a18737d

View File

@@ -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' },
@@ -242,32 +235,39 @@ export default function Drugs() {
return (
<Page title="Claim Reports">
<HeaderBreadcrumbs
heading={'Claim Submit'}
links={[
{ name: 'Case Management', href: '/dashboard' },
{
name: 'Claim Submit',
href: '/claim-submit',
},
]}
/>
heading={'Claim Submit'}
links={[
{ name: 'Case Management', href: '/dashboard' },
{
name: 'Claim Submit',
href: '/claim-submit',
},
]}
/>
<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}>
<DialogClaimSubmitMember
openDialog={true}
setOpenDialog={false}
title={{ name: 'te' }}
/>
openDialog={true}
setOpenDialog={false}
title={{ name: 'te' }}
/>
</Grid>
</Grid>
</Container>