Skip to content

Commit

Permalink
fix: spelling of lookupSecret -> lookup_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Jan 2, 2024
1 parent d7f43bd commit cd89de0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs-spa/src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const Settings: NextPageWithLayout = () => {
"password",
"totp",
"webauthn",
"lookupSecret",
"lookup_secret",
"oidc",
] as UserSettingsFlowType[]
).map((flowType: UserSettingsFlowType, index) => (
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-spa/src/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const Settings = () => {
"password",
"totp",
"webauthn",
"lookupSecret",
"lookup_secret",
"oidc",
] as UserSettingsFlowType[]
).map((flowType: UserSettingsFlowType, index) => (
Expand Down
2 changes: 1 addition & 1 deletion examples/react-spa/src/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const Settings = () => {
"password",
"totp",
"webauthn",
"lookupSecret",
"lookup_secret",
"oidc",
] as UserSettingsFlowType[]
).map((flowType: UserSettingsFlowType, index) => (
Expand Down
4 changes: 2 additions & 2 deletions src/react-components/ory/user-settings-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type UserSettingsFlowType =
| "webauthn"
| "passkey"
| "oidc"
| "lookupSecret"
| "lookup_secret"

export type UserSettingsCardProps = {
flow: SettingsFlow
Expand Down Expand Up @@ -110,7 +110,7 @@ export const UserSettingsCard = ({
$flow = <PasskeySettingsSection flow={flow} />
}
break
case "lookupSecret":
case "lookup_secret":
if (hasLookupSecret(flow.ui.nodes)) {
hasFlow = true
cardTitle =
Expand Down
4 changes: 2 additions & 2 deletions src/react-components/ory/user-settings-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const SettingScreenNavigation = ({
id: "settings.navigation-backup-codes",
defaultMessage: "2FA Backup Codes",
}),
href: "#lookupSecret",
href: "#lookup_secret",
iconLeft: "shield",
testId: "backup-codes",
},
Expand Down Expand Up @@ -162,7 +162,7 @@ const settingsScreenMethods: UserSettingsFlowType[] = [
"profile",
"password",
"oidc",
"lookupSecret",
"lookup_secret",
"webauthn",
"passkey",
"totp",
Expand Down

0 comments on commit cd89de0

Please sign in to comment.