diff --git a/frontend/src/Modal/index.tsx b/frontend/src/Modal/index.tsx index ff3ed07..bc5f025 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 && (