Skip to content

Commit

Permalink
fix: consistent for internal setting components
Browse files Browse the repository at this point in the history
  • Loading branch information
mszekiel committed Oct 15, 2024
1 parent 0378c35 commit 9cc5895
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9cc5895

Please sign in to comment.