Skip to content

Commit 1739658

Browse files
fix(clerk-js): Remove extra legal consent checkbox (clerk#5289)
1 parent 593356c commit 1739658

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.changeset/afraid-cats-study.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Removes legal consent checkbox from sign-up start card when only social or web3 strategies are enabled.

packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx

-10
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { SignInContext, useCoreSignUp, useEnvironment, useSignUpContext } from '
88
import { descriptors, Flex, Flow, localizationKeys, useAppearance, useLocalizations } from '../../customizables';
99
import {
1010
Card,
11-
Form,
1211
Header,
13-
LegalCheckbox,
1412
LoadingCard,
1513
SocialButtonsReversibleContainerWithDivider,
1614
withCardStateProvider,
@@ -320,14 +318,6 @@ function _SignUpStart(): JSX.Element {
320318
/>
321319
)}
322320
</SocialButtonsReversibleContainerWithDivider>
323-
{!shouldShowForm && isLegalConsentEnabled && (
324-
<Form.ControlRow elementId='legalAccepted'>
325-
<LegalCheckbox
326-
{...formState.legalAccepted.props}
327-
isRequired={fields.legalAccepted?.required}
328-
/>
329-
</Form.ControlRow>
330-
)}
331321
{!shouldShowForm && <CaptchaElement />}
332322
</Flex>
333323
</Card.Content>

0 commit comments

Comments
 (0)