Skip to content

Commit e5e5364

Browse files
fix(ui): Wrap phone code button in SupportedStrategy element (#3875)
1 parent a5ceafd commit e5e5364

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

.changeset/lazy-poems-burn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/ui/src/components/sign-in/sign-in.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,18 +1101,23 @@ export function SignInComponentLoaded() {
11011101
</Button>
11021102
</SignIn.SupportedStrategy>
11031103

1104-
<Button
1105-
intent='secondary'
1106-
iconStart={<Icon.SMSSm />}
1104+
<SignIn.SupportedStrategy
1105+
name='reset_password_phone_code'
1106+
asChild
11071107
>
1108-
<SignIn.SafeIdentifier
1109-
transform={(identifier: string) =>
1110-
t('signIn.alternativeMethods.blockButton__phoneCode', {
1111-
identifier,
1112-
})
1113-
}
1114-
/>
1115-
</Button>
1108+
<Button
1109+
intent='secondary'
1110+
iconStart={<Icon.SMSSm />}
1111+
>
1112+
<SignIn.SafeIdentifier
1113+
transform={(identifier: string) =>
1114+
t('signIn.alternativeMethods.blockButton__phoneCode', {
1115+
identifier,
1116+
})
1117+
}
1118+
/>
1119+
</Button>
1120+
</SignIn.SupportedStrategy>
11161121

11171122
<SignIn.SupportedStrategy
11181123
name='passkey'

0 commit comments

Comments
 (0)