Skip to content

Commit e09dbc6

Browse files
capJavertclaude
andcommitted
fix(onboarding): wire header buttons to v2 inline auth flow
Login opens the auth modal with login display, signup opens the signup chooser. Both use the v2 component's own auth flow instead of showLogin which redirects to /onboarding. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3de8604 commit e09dbc6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

packages/webapp/components/onboarding/OnboardingV2.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,18 +1143,21 @@ export const OnboardingV2 = (): ReactElement => {
11431143
position={LogoPosition.Relative}
11441144
className="!left-0 !top-0 !mt-0 !translate-x-0"
11451145
/>
1146-
<div className="ml-auto flex items-center gap-3">
1146+
<div className="ml-auto flex items-center gap-4">
11471147
<button
11481148
type="button"
1149-
onClick={openLogin}
1150-
className="rounded-12 px-3 py-1.5 font-bold text-text-secondary transition-colors duration-200 typo-callout hover:bg-surface-hover"
1149+
onClick={() => {
1150+
setAuthDisplay(AuthDisplay.Default);
1151+
setShowAuthSignup(true);
1152+
}}
1153+
className="h-10 rounded-14 border border-border-subtlest-tertiary px-5 font-bold text-text-primary transition-colors duration-200 typo-callout hover:bg-surface-hover"
11511154
>
11521155
Log in
11531156
</button>
11541157
<button
11551158
type="button"
11561159
onClick={() => setShowSignupChooser(true)}
1157-
className="hover:opacity-90 rounded-12 bg-accent-cabbage-default px-5 py-1.5 font-bold text-white transition-opacity duration-200 typo-callout"
1160+
className="h-10 rounded-14 bg-white px-5 font-bold text-black transition-opacity duration-200 typo-callout hover:opacity-90"
11581161
>
11591162
Sign up
11601163
</button>

0 commit comments

Comments
 (0)