fix(auth): adjust button variant based on sign-in-up step (#9188)

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.
This commit is contained in:
Antoine Moreaux
2024-12-23 11:30:36 +01:00
committed by GitHub
parent 7d57d61f47
commit 093f627e1d

View File

@ -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
/>