From 1c4f03ea833be204def81d56cc761a88497828a7 Mon Sep 17 00:00:00 2001 From: R Date: Fri, 24 Feb 2023 09:47:35 +0700 Subject: [PATCH] Separate Invoice Upload --- .../src/components/dialogs/DialogDetailClaim.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/hospital-portal/src/components/dialogs/DialogDetailClaim.tsx b/frontend/hospital-portal/src/components/dialogs/DialogDetailClaim.tsx index 59c65056..9b63cb74 100644 --- a/frontend/hospital-portal/src/components/dialogs/DialogDetailClaim.tsx +++ b/frontend/hospital-portal/src/components/dialogs/DialogDetailClaim.tsx @@ -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={} fullWidth // sx={{ typography: 'subtitle2', borderColor: '#F5F5F5' }} - onClick={() => {handleDownloadLog(claim)}} + onClick={() => {handleUploadInvoice()}} > Upload Invoice