Skip to content

Commit

Permalink
fix(auth): adjust button variant based on sign-in-up step (#9188)
Browse files Browse the repository at this point in the history
Update the button variant to dynamically switch between 'secondary' and
'primary' based on the current step in the sign-in-up flow. Ensures the
UI reflects the correct state, improving user experience and
consistency.
  • Loading branch information
AMoreaux authored Dec 23, 2024
1 parent 7d57d61 commit 093f627
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export const SignInUpGlobalScopeForm = () => {
signInUpStep === SignInUpStep.Password ? 'Sign Up' : 'Continue'
}
type="submit"
variant="secondary"
variant={
signInUpStep === SignInUpStep.Init ? 'secondary' : 'primary'
}
Icon={() => (form.formState.isSubmitting ? <Loader /> : null)}
fullWidth
/>
Expand Down

0 comments on commit 093f627

Please sign in to comment.