Separate Invoice Upload

This commit is contained in:
R
2023-02-24 09:47:35 +07:00
parent 627904abba
commit 1c4f03ea83

View File

@@ -21,6 +21,7 @@ import { ReactElement, useEffect, useState } from 'react';
import { fDate } from '@/utils/formatTime';
import { addMinutes, format } from 'date-fns';
import { LoadingButton } from '@mui/lab';
import { enqueueSnackbar } from 'notistack';
type DataContent = {
claim: object;
@@ -73,6 +74,12 @@ const DialogDetailClaim = ({ title, openDialog, setOpenDialog, data }: MuiDialog
})
}
// ----------------------------------------------------
// Handle Upload Invoice
const handleUploadInvoice = () => {
enqueueSnackbar('Something went wrong, please contact Link Medis Sehat', {variant: 'error'})
}
const getContent = () => (
<>
{data.isLoading && (
@@ -115,7 +122,7 @@ const DialogDetailClaim = ({ title, openDialog, setOpenDialog, data }: MuiDialog
startIcon={<Add />}
fullWidth
// sx={{ typography: 'subtitle2', borderColor: '#F5F5F5' }}
onClick={() => {handleDownloadLog(claim)}}
onClick={() => {handleUploadInvoice()}}
>
Upload Invoice
</LoadingButton>