Skip to content

Commit 1ca05fc

Browse files
docs(mosaic): show the sign-in locked example as a sign-in-only start screen with the email kept
1 parent 00627ae commit 1ca05fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/swingset/src/stories/sign-in.stories.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ function StepPanel({
459459
isPending = false,
460460
pendingProviderId,
461461
providers = socialProviders,
462+
identifier,
462463
}: {
463464
step: SignInStep;
464465
combined?: boolean;
@@ -467,12 +468,14 @@ function StepPanel({
467468
isPending?: boolean;
468469
pendingProviderId?: string;
469470
providers?: SignInSocialProvider[];
471+
identifier?: string;
470472
}) {
471473
const attempted = errorMessage && step.kind !== 'identifier' ? 'incorrect' : '';
472474
const form = useForm<SignInValues>({
473475
initialValues: {
474476
...emptyValues,
475-
identifier: step.kind === 'sign-up' ? 'new@acme.com' : step.kind === 'identifier' ? '' : IDENTIFIER,
477+
identifier:
478+
identifier ?? (step.kind === 'sign-up' ? 'new@acme.com' : step.kind === 'identifier' ? '' : IDENTIFIER),
476479
password: attempted,
477480
backupCode: attempted,
478481
},
@@ -559,6 +562,8 @@ export function IdentifierLocked() {
559562
return (
560563
<StepPanel
561564
step={{ kind: 'identifier' }}
565+
combined={false}
566+
identifier={IDENTIFIER}
562567
globalErrorMessage='Your account is locked. You will be able to try again in 30 minutes. For more information, please contact support.'
563568
/>
564569
);

0 commit comments

Comments
 (0)