diff --git a/src/markup-components/components.ts b/src/markup-components/components.ts index cc8ca5b8f..db53920f0 100644 --- a/src/markup-components/components.ts +++ b/src/markup-components/components.ts @@ -20,8 +20,8 @@ import { DividerProps, InputField as inputField, InputFieldProps, - LookupSecretSettingsProps, - LookupSecretSettingsSection as lookupSecretSettingsSection, + lookup_secretSettingsProps, + lookup_secretSettingsSection as lookup_secretSettingsSection, MenuLink as menuLink, MenuLinkProps, Message as message, @@ -205,11 +205,11 @@ export const TOTPSettingsSection = ( return ComponentWrapper(totpSettingsSection, props, context) } -export const LookupSecretSettingsSection = ( - props: LookupSecretSettingsProps, +export const lookup_secretSettingsSection = ( + props: lookup_secretSettingsProps, context: Context = {}, ) => { - return ComponentWrapper(lookupSecretSettingsSection, props, context) + return ComponentWrapper(lookup_secretSettingsSection, props, context) } export const UserConsentCard = ( @@ -231,7 +231,7 @@ export type { CodeBoxProps, DividerProps, InputFieldProps, - LookupSecretSettingsProps, + lookup_secretSettingsProps, MenuLinkProps, MessageProps, NavProps, diff --git a/src/markup-components/index.ts b/src/markup-components/index.ts index 1d561fcb8..d43e37cde 100644 --- a/src/markup-components/index.ts +++ b/src/markup-components/index.ts @@ -3,7 +3,7 @@ export { hasHiddenIdentifier, - hasLookupSecret, + haslookup_secret, hasOidc, hasPassword, hasTotp, diff --git a/src/react-components/ory/helpers/utils.ts b/src/react-components/ory/helpers/utils.ts index 06373c196..7fe1d7c4d 100644 --- a/src/react-components/ory/helpers/utils.ts +++ b/src/react-components/ory/helpers/utils.ts @@ -12,7 +12,7 @@ export const hasPassword = (nodes: UiNode[]) => export const hasWebauthn = (nodes: UiNode[]) => nodes.some(({ group }) => group === "webauthn") -export const hasLookupSecret = (nodes: UiNode[]) => +export const haslookup_secret = (nodes: UiNode[]) => nodes.some(({ group }) => group === "lookup_secret") export const hasTotp = (nodes: UiNode[]) => diff --git a/src/react-components/ory/sections/lookup-secret-settings-section.tsx b/src/react-components/ory/sections/lookup-secret-settings-section.tsx index 123f926fa..11a8edfe5 100644 --- a/src/react-components/ory/sections/lookup-secret-settings-section.tsx +++ b/src/react-components/ory/sections/lookup-secret-settings-section.tsx @@ -3,22 +3,22 @@ import { JSX } from "react" import { gridStyle } from "../../../theme" import { FilterFlowNodes } from "../helpers/filter-flow-nodes" -import { hasLookupSecret } from "../helpers/utils" +import { haslookup_secret } from "../helpers/utils" -export interface LookupSecretSettingsProps { +export interface lookup_secretSettingsProps { flow: SettingsFlow } -export const LookupSecretSettingsSection = ({ +export const lookup_secretSettingsSection = ({ flow, -}: LookupSecretSettingsProps): JSX.Element | null => { +}: lookup_secretSettingsProps): JSX.Element | null => { const filter = { nodes: flow.ui.nodes, groups: "lookup_secret", withoutDefaultGroup: true, } - return hasLookupSecret(flow.ui.nodes) ? ( + return haslookup_secret(flow.ui.nodes) ? (
{ - return hasLookupSecret(nodes) ? ( +}: lookup_secretsSectionProps): JSX.Element | null => { + return haslookup_secret(nodes) ? (