From d4840f85c0b1a7f7a2c7c188641049648d6f79e2 Mon Sep 17 00:00:00 2001 From: TomasMatarazzo Date: Thu, 18 Apr 2024 13:50:08 -0300 Subject: [PATCH] change text in modal --- frontend/src/Modal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Modal/index.tsx b/frontend/src/Modal/index.tsx index ff3ed075..bc5f0254 100644 --- a/frontend/src/Modal/index.tsx +++ b/frontend/src/Modal/index.tsx @@ -8,7 +8,9 @@ interface ModalProps { modalState: string; isError: boolean; errorMessage?: string; + textDelete?: boolean; } + const Modal = (props: ModalProps) => { return (
{ onClick={() => props.handleSubmit()} className="ml-auto h-10 w-20 rounded-3xl bg-violet-800 text-white transition-all hover:bg-violet-700" > - Save + {props.textDelete ? 'Delete' : 'Save'} {props.isCancellable && (