|
1 | 1 | import { getAlternativePhoneCodeProviderData } from '@clerk/shared/alternativePhoneCode'; |
2 | 2 | import { useClerk } from '@clerk/shared/react'; |
3 | 3 | import type { PhoneCodeChannel, PhoneCodeChannelData, SignUpResource } from '@clerk/shared/types'; |
4 | | -import React, { useMemo } from 'react'; |
| 4 | +import React from 'react'; |
5 | 5 |
|
6 | 6 | import { isClerkAPIResponseError } from '@/index.headless'; |
7 | 7 | import { Card } from '@/ui/elements/Card'; |
@@ -129,16 +129,6 @@ function SignUpStartInternal(): JSX.Element { |
129 | 129 | const isProgressiveSignUp = userSettings.signUp.progressive; |
130 | 130 | const isLegalConsentEnabled = userSettings.signUp.legal_consent_enabled; |
131 | 131 | const oidcPrompt = ctx.oidcPrompt; |
132 | | - |
133 | | - const onlyLegalAcceptedMissing = useMemo( |
134 | | - () => |
135 | | - signUp.missingFields && |
136 | | - signUp.missingFields.length === 1 && |
137 | | - signUp.missingFields[0] === 'legal_accepted' && |
138 | | - signUp.unverifiedFields && |
139 | | - signUp.unverifiedFields.length === 0, |
140 | | - [signUp.missingFields, signUp.unverifiedFields], |
141 | | - ); |
142 | 132 | const fields = determineActiveFields({ |
143 | 133 | attributes, |
144 | 134 | hasTicket: hasTicket || hasExistingSignUpWithTicket, |
@@ -173,6 +163,7 @@ function SignUpStartInternal(): JSX.Element { |
173 | 163 | redirectUrlComplete, |
174 | 164 | verifyEmailPath: 'verify-email-address', |
175 | 165 | verifyPhonePath: 'verify-phone-number', |
| 166 | + continuePath: './continue', |
176 | 167 | handleComplete: () => { |
177 | 168 | removeClerkQueryParam('__clerk_ticket'); |
178 | 169 | removeClerkQueryParam('__clerk_invitation_token'); |
@@ -454,7 +445,6 @@ function SignUpStartInternal(): JSX.Element { |
454 | 445 | formState={formState} |
455 | 446 | canToggleEmailPhone={canToggleEmailPhone} |
456 | 447 | handleEmailPhoneToggle={handleChangeActive} |
457 | | - onlyLegalAcceptedMissing={onlyLegalAcceptedMissing} |
458 | 448 | /> |
459 | 449 | )} |
460 | 450 | </SocialButtonsReversibleContainerWithDivider> |
|
0 commit comments