From cd89de0987e219b22f27dfc44fec69a9919e7f03 Mon Sep 17 00:00:00 2001 From: Henning Perl Date: Tue, 2 Jan 2024 11:31:18 +0100 Subject: [PATCH] fix: spelling of lookupSecret -> lookup_secret --- examples/nextjs-spa/src/pages/settings.tsx | 2 +- examples/preact-spa/src/settings.tsx | 2 +- examples/react-spa/src/Settings.tsx | 2 +- src/react-components/ory/user-settings-card.tsx | 4 ++-- src/react-components/ory/user-settings-screen.tsx | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/nextjs-spa/src/pages/settings.tsx b/examples/nextjs-spa/src/pages/settings.tsx index c86f88350..6bf31ae03 100644 --- a/examples/nextjs-spa/src/pages/settings.tsx +++ b/examples/nextjs-spa/src/pages/settings.tsx @@ -108,7 +108,7 @@ const Settings: NextPageWithLayout = () => { "password", "totp", "webauthn", - "lookupSecret", + "lookup_secret", "oidc", ] as UserSettingsFlowType[] ).map((flowType: UserSettingsFlowType, index) => ( diff --git a/examples/preact-spa/src/settings.tsx b/examples/preact-spa/src/settings.tsx index 620c82a20..68a3674fe 100644 --- a/examples/preact-spa/src/settings.tsx +++ b/examples/preact-spa/src/settings.tsx @@ -76,7 +76,7 @@ export const Settings = () => { "password", "totp", "webauthn", - "lookupSecret", + "lookup_secret", "oidc", ] as UserSettingsFlowType[] ).map((flowType: UserSettingsFlowType, index) => ( diff --git a/examples/react-spa/src/Settings.tsx b/examples/react-spa/src/Settings.tsx index ad340efe4..788cc87fb 100644 --- a/examples/react-spa/src/Settings.tsx +++ b/examples/react-spa/src/Settings.tsx @@ -80,7 +80,7 @@ export const Settings = () => { "password", "totp", "webauthn", - "lookupSecret", + "lookup_secret", "oidc", ] as UserSettingsFlowType[] ).map((flowType: UserSettingsFlowType, index) => ( diff --git a/src/react-components/ory/user-settings-card.tsx b/src/react-components/ory/user-settings-card.tsx index 7f10ffd22..4dea602e3 100644 --- a/src/react-components/ory/user-settings-card.tsx +++ b/src/react-components/ory/user-settings-card.tsx @@ -33,7 +33,7 @@ export type UserSettingsFlowType = | "webauthn" | "passkey" | "oidc" - | "lookupSecret" + | "lookup_secret" export type UserSettingsCardProps = { flow: SettingsFlow @@ -110,7 +110,7 @@ export const UserSettingsCard = ({ $flow = } break - case "lookupSecret": + case "lookup_secret": if (hasLookupSecret(flow.ui.nodes)) { hasFlow = true cardTitle = diff --git a/src/react-components/ory/user-settings-screen.tsx b/src/react-components/ory/user-settings-screen.tsx index ef799a90b..398927c16 100644 --- a/src/react-components/ory/user-settings-screen.tsx +++ b/src/react-components/ory/user-settings-screen.tsx @@ -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", }, @@ -162,7 +162,7 @@ const settingsScreenMethods: UserSettingsFlowType[] = [ "profile", "password", "oidc", - "lookupSecret", + "lookup_secret", "webauthn", "passkey", "totp",