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:
@ -126,7 +126,9 @@ export const SignInUpGlobalScopeForm = () => {
|
|||||||
signInUpStep === SignInUpStep.Password ? 'Sign Up' : 'Continue'
|
signInUpStep === SignInUpStep.Password ? 'Sign Up' : 'Continue'
|
||||||
}
|
}
|
||||||
type="submit"
|
type="submit"
|
||||||
variant="secondary"
|
variant={
|
||||||
|
signInUpStep === SignInUpStep.Init ? 'secondary' : 'primary'
|
||||||
|
}
|
||||||
Icon={() => (form.formState.isSubmitting ? <Loader /> : null)}
|
Icon={() => (form.formState.isSubmitting ? <Loader /> : null)}
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user