From 1961371aa6539a767232acf1f21a359b8bed00f6 Mon Sep 17 00:00:00 2001 From: Andrew Nelson Date: Mon, 24 Jul 2023 18:28:20 -0700 Subject: [PATCH 1/3] changed template links to buttons --- src/components/forms/Form/Form.stories.tsx | 44 +++++++++---------- .../templates/createaccount.stories.tsx | 23 +++++----- src/stories/templates/signin.stories.tsx | 23 +++++----- 3 files changed, 43 insertions(+), 47 deletions(-) diff --git a/src/components/forms/Form/Form.stories.tsx b/src/components/forms/Form/Form.stories.tsx index 0876337460..49a597382c 100644 --- a/src/components/forms/Form/Form.stories.tsx +++ b/src/components/forms/Form/Form.stories.tsx @@ -211,18 +211,17 @@ export const signInForm = (): React.ReactElement => { name="password-sign-in" type={showPassword ? 'text' : 'password'} /> -

- - setShowPassword((showPassword) => !showPassword) - }> - {showPassword ? 'Hide password' : 'Show password'} - -

+

@@ -265,17 +264,16 @@ export const passwordResetForm = (): React.ReactElement => { name="confirmPassword" type={showPassword ? 'text' : 'password'} /> -

- - setShowPassword((showPassword) => !showPassword) - }> - {showPassword ? 'Hide my typing' : 'Show my typing'} - -

+ diff --git a/src/stories/templates/createaccount.stories.tsx b/src/stories/templates/createaccount.stories.tsx index d0f0d0ba2d..560028464a 100644 --- a/src/stories/templates/createaccount.stories.tsx +++ b/src/stories/templates/createaccount.stories.tsx @@ -204,18 +204,17 @@ export const CreateAccount = (): React.ReactElement => { required={true} /> -

- - setShowPassword((showPassword) => !showPassword) - }> - {showPassword ? 'Hide password' : 'Show password'} - -

+