From 9cc58957f3dc5955f356707c83e4ab5b140a9dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Szekiel?= <12242002+mszekiel@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:16:54 +0200 Subject: [PATCH] fix: consistent for internal setting components --- .../src/components/settings/passkey-settings.tsx | 4 ++-- .../src/components/settings/recovery-codes-settings.tsx | 4 ++-- .../src/components/settings/webauthn-settings.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/elements-react/src/components/settings/passkey-settings.tsx b/packages/elements-react/src/components/settings/passkey-settings.tsx index e1ccbd66..8f9a5038 100644 --- a/packages/elements-react/src/components/settings/passkey-settings.tsx +++ b/packages/elements-react/src/components/settings/passkey-settings.tsx @@ -29,11 +29,11 @@ const getRemoveNodes = (nodes: UiNode[]): UiNode[] => "name" in node.attributes && node.attributes.name === "passkey_remove", ) -interface OrySettingsPasskeyProps { +interface HeadlessSettingsPasskeyProps { nodes: UiNode[] } -export function OrySettingsPasskey({ nodes }: OrySettingsPasskeyProps) { +export function OrySettingsPasskey({ nodes }: HeadlessSettingsPasskeyProps) { const { Settings } = useComponents() const intl = useIntl() const { flow } = useOryFlow() diff --git a/packages/elements-react/src/components/settings/recovery-codes-settings.tsx b/packages/elements-react/src/components/settings/recovery-codes-settings.tsx index 72ee4bb4..f1249abc 100644 --- a/packages/elements-react/src/components/settings/recovery-codes-settings.tsx +++ b/packages/elements-react/src/components/settings/recovery-codes-settings.tsx @@ -23,13 +23,13 @@ const getRecoveryCodes = (nodes: UiNode[]): UiNode | undefined => "id" in node.attributes && node.attributes.id === "lookup_secret_codes", ) -interface OrySettingsRecoveryCodesProps { +interface HeadlessSettingsRecoveryCodesProps { nodes: UiNode[] } export function OrySettingsRecoveryCodes({ nodes, -}: OrySettingsRecoveryCodesProps) { +}: HeadlessSettingsRecoveryCodesProps) { const { Settings } = useComponents() const intl = useIntl() diff --git a/packages/elements-react/src/components/settings/webauthn-settings.tsx b/packages/elements-react/src/components/settings/webauthn-settings.tsx index 7b7e1fd4..661fd188 100644 --- a/packages/elements-react/src/components/settings/webauthn-settings.tsx +++ b/packages/elements-react/src/components/settings/webauthn-settings.tsx @@ -40,11 +40,11 @@ const getRegisterNode = (nodes: UiNode[]): UiNode | undefined => "name" in node.attributes && node.attributes.name === "webauthn_register", ) -interface OrySettingsWebauthnProps { +interface HeadlessSettingsWebauthnProps { nodes: UiNode[] } -export function OrySettingsWebauthn({ nodes }: OrySettingsWebauthnProps) { +export function OrySettingsWebauthn({ nodes }: HeadlessSettingsWebauthnProps) { const { Settings } = useComponents() const intl = useIntl() const { flow } = useOryFlow()