Skip to content

The open alternative to Salesforce, designed for AI.

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

Antoine Moreaux093f627e1d01
diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
index c38e45ebedb..ef4950f3122 100644
--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
@@ -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
/>