diff --git a/src/components/SpendLimitForm.tsx b/src/components/SpendLimitForm.tsx index 35529bd..2cd7c74 100644 --- a/src/components/SpendLimitForm.tsx +++ b/src/components/SpendLimitForm.tsx @@ -1,5 +1,4 @@ import { ErrorMessage } from '@hookform/error-message'; -import type { ReactNode } from 'react'; import type { SubmitHandler } from 'react-hook-form'; import { FormProvider, useForm } from 'react-hook-form'; @@ -12,7 +11,6 @@ export type ExtendedSpendLimitFormValues = { interface SpendLimitFormProps { formName?: string; disabled?: boolean; - actionButton?: ReactNode; onSubmit?: ( data: ExtendedSpendLimitFormValues ) => Promise | boolean; @@ -24,7 +22,6 @@ interface SpendLimitFormValues { const SpendLimitForm = ({ formName, onSubmit, - actionButton, disabled, }: SpendLimitFormProps) => { const formMethods = useForm(); @@ -67,7 +64,6 @@ const SpendLimitForm = ({ />
- {actionButton} diff --git a/src/components/SpendLimitFormModal.tsx b/src/components/SpendLimitFormModal.tsx index 255b17d..c54aa4f 100644 --- a/src/components/SpendLimitFormModal.tsx +++ b/src/components/SpendLimitFormModal.tsx @@ -35,18 +35,16 @@ const SpendLimitFormModal = ({ }} />
-
-

{title}

- setIsConfirmResetVisible(true)}> - {' '} - Reset - - } - /> +
+

+ {title} + +

+