From cd09c746f19c29ba1065f84ed693191d54447e6a Mon Sep 17 00:00:00 2001 From: nithish Date: Tue, 3 Dec 2024 19:25:37 +0530 Subject: [PATCH] removed button array --- src/components/Patient/UpdateStatusDialog.tsx | 40 ++++--------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/src/components/Patient/UpdateStatusDialog.tsx b/src/components/Patient/UpdateStatusDialog.tsx index b40922ca764..e9a767847aa 100644 --- a/src/components/Patient/UpdateStatusDialog.tsx +++ b/src/components/Patient/UpdateStatusDialog.tsx @@ -1,7 +1,7 @@ -import { ReactNode, useEffect, useReducer } from "react"; +import { useEffect, useReducer } from "react"; import { useTranslation } from "react-i18next"; -import CareIcon, { IconName } from "@/CAREUI/icons/CareIcon"; +import CareIcon from "@/CAREUI/icons/CareIcon"; import { Button } from "@/components/ui/button"; @@ -56,7 +56,6 @@ const updateStatusReducer = (state = initialState, action: any) => { return state; } }; - const UpdateStatusDialog = (props: Props) => { const { t } = useTranslation(); const { sample, handleOk, handleCancel } = props; @@ -67,22 +66,6 @@ const UpdateStatusDialog = (props: Props) => { allowedExtensions: ["pdf", "jpg", "jpeg", "png"], allowNameFallback: true, }); - const uploadButtons: { - name: string; - icon: IconName; - onClick?: () => void; - children?: ReactNode; - show?: boolean; - id: string; - }[] = [ - { - name: t("choose_file"), - icon: "l-file-upload-alt", - children: , - id: "upload-file", - }, - ]; - const currentStatus = SAMPLE_TEST_STATUS.find( (i) => i.text === sample.status, ); @@ -224,20 +207,11 @@ const UpdateStatusDialog = (props: Props) => { ) : (
- {uploadButtons - .filter((b) => b.show !== false) - .map((button, i) => ( - - ))} +
)}