From f1a778f4e0acb602c5864ae95a6e6bb8acd26241 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:25:30 -0500 Subject: [PATCH] New "none" handling and tests --- .../MyAccount/Settings/EditButton.tsx | 4 +- .../Settings/NotificationForm.test.tsx | 156 +++++++++++------- .../MyAccount/Settings/SettingsInputForm.tsx | 23 +-- .../MyAccount/Settings/SettingsSelectForm.tsx | 73 +++++--- 4 files changed, 167 insertions(+), 89 deletions(-) diff --git a/src/components/MyAccount/Settings/EditButton.tsx b/src/components/MyAccount/Settings/EditButton.tsx index 1f4d7d92a..efaa5d84f 100644 --- a/src/components/MyAccount/Settings/EditButton.tsx +++ b/src/components/MyAccount/Settings/EditButton.tsx @@ -5,13 +5,15 @@ type EditButtonProps = { buttonId: string buttonLabel: string onClick: () => void + isDisabled?: boolean } const EditButton = forwardRef( - ({ buttonLabel, buttonId, onClick }, ref) => { + ({ buttonLabel, buttonId, isDisabled, onClick }, ref) => { return (