Use extract instead of subtype to ease copy paste into theme repo
This commit is contained in:
parent
93780b77e0
commit
53c0079656
@ -1,9 +1,9 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function Error(props: PageProps<KcContextBase.Error, I18nBase>) {
|
export default function Error(props: PageProps<Extract<KcContextBase, { pageId: "error.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { message, client } = kcContext;
|
const { message, client } = kcContext;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function IdpReviewUserProfile(props: PageProps<KcContextBase.IdpReviewUserProfile, I18nBase>) {
|
export default function IdpReviewUserProfile(props: PageProps<Extract<KcContextBase, { pageId: "idp-review-user-profile.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { assert } from "../tools/assert";
|
import { assert } from "../tools/assert";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function Info(props: PageProps<KcContextBase.Info, I18nBase>) {
|
export default function Info(props: PageProps<Extract<KcContextBase, { pageId: "info.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msgStr, msg } = i18n;
|
const { msgStr, msg } = i18n;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React, { useState, type FormEventHandler } from "react";
|
import React, { useState, type FormEventHandler } from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { useConstCallback } from "../tools/useConstCallback";
|
import { useConstCallback } from "../tools/useConstCallback";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function Login(props: PageProps<KcContextBase.Login, I18nBase>) {
|
export default function Login(props: PageProps<Extract<KcContextBase, { pageId: "login.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { social, realm, url, usernameEditDisabled, login, auth, registrationDisabled } = kcContext;
|
const { social, realm, url, usernameEditDisabled, login, auth, registrationDisabled } = kcContext;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginConfigTotp(props: PageProps<KcContextBase.LoginConfigTotp, I18nBase>) {
|
export default function LoginConfigTotp(props: PageProps<Extract<KcContextBase, { pageId: "login-config-totp.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, isAppInitiatedAction, totp, mode, messagesPerField } = kcContext;
|
const { url, isAppInitiatedAction, totp, mode, messagesPerField } = kcContext;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginIdpLinkConfirm(props: PageProps<KcContextBase.LoginIdpLinkConfirm, I18nBase>) {
|
export default function LoginIdpLinkConfirm(props: PageProps<Extract<KcContextBase, { pageId: "login-idp-link-confirm.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, idpAlias } = kcContext;
|
const { url, idpAlias } = kcContext;
|
||||||
|
@ -3,7 +3,7 @@ import type { KcContextBase } from "../getKcContext";
|
|||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginIdpLinkEmail(props: PageProps<KcContextBase.LoginIdpLinkEmail, I18nBase>) {
|
export default function LoginIdpLinkEmail(props: PageProps<Extract<KcContextBase, { pageId: "login-idp-link-email.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, realm, brokerContext, idpAlias } = kcContext;
|
const { url, realm, brokerContext, idpAlias } = kcContext;
|
||||||
|
@ -2,11 +2,11 @@ import React, { useEffect } from "react";
|
|||||||
import { headInsert } from "../tools/headInsert";
|
import { headInsert } from "../tools/headInsert";
|
||||||
import { pathJoin } from "../../bin/tools/pathJoin";
|
import { pathJoin } from "../../bin/tools/pathJoin";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginOtp(props: PageProps<KcContextBase.LoginOtp, I18nBase>) {
|
export default function LoginOtp(props: PageProps<Extract<KcContextBase, { pageId: "login-otp.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { otpLogin, url } = kcContext;
|
const { otpLogin, url } = kcContext;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginPageExpired(props: PageProps<KcContextBase.LoginPageExpired, I18nBase>) {
|
export default function LoginPageExpired(props: PageProps<Extract<KcContextBase, { pageId: "login-page-expired.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url } = kcContext;
|
const { url } = kcContext;
|
||||||
|
@ -2,11 +2,11 @@ import React, { useState } from "react";
|
|||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { useConstCallback } from "../tools/useConstCallback";
|
import { useConstCallback } from "../tools/useConstCallback";
|
||||||
import type { FormEventHandler } from "react";
|
import type { FormEventHandler } from "react";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginPassword(props: PageProps<KcContextBase.LoginPassword, I18nBase>) {
|
export default function LoginPassword(props: PageProps<Extract<KcContextBase, { "pageId": "login-password.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { realm, url, login } = kcContext;
|
const { realm, url, login } = kcContext;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginResetPassword(props: PageProps<KcContextBase.LoginResetPassword, I18nBase>) {
|
export default function LoginResetPassword(props: PageProps<Extract<KcContextBase, { pageId: "login-reset-password.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, realm, auth } = kcContext;
|
const { url, realm, auth } = kcContext;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginUpdatePassword(props: PageProps<KcContextBase.LoginUpdatePassword, I18nBase>) {
|
export default function LoginUpdatePassword(props: PageProps<Extract<KcContextBase, { pageId: "login-update-password.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginUpdateProfile(props: PageProps<KcContextBase.LoginUpdateProfile, I18nBase>) {
|
export default function LoginUpdateProfile(props: PageProps<Extract<KcContextBase, { pageId: "login-update-profile.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
@ -2,11 +2,11 @@ import React, { useState } from "react";
|
|||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { useConstCallback } from "../tools/useConstCallback";
|
import { useConstCallback } from "../tools/useConstCallback";
|
||||||
import type { FormEventHandler } from "react";
|
import type { FormEventHandler } from "react";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginUsername(props: PageProps<KcContextBase.LoginUsername, I18nBase>) {
|
export default function LoginUsername(props: PageProps<Extract<KcContextBase, { pageId: "login-username.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { social, realm, url, usernameHidden, login, registrationDisabled } = kcContext;
|
const { social, realm, url, usernameHidden, login, registrationDisabled } = kcContext;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LoginVerifyEmail(props: PageProps<KcContextBase.LoginVerifyEmail, I18nBase>) {
|
export default function LoginVerifyEmail(props: PageProps<Extract<KcContextBase, { pageId: "login-verify-email.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg } = i18n;
|
const { msg } = i18n;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function LogoutConfirm(props: PageProps<KcContextBase.LogoutConfirm, I18nBase>) {
|
export default function LogoutConfirm(props: PageProps<Extract<KcContextBase, { pageId: "logout-confirm.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, client, logoutConfirm } = kcContext;
|
const { url, client, logoutConfirm } = kcContext;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function Register(props: PageProps<KcContextBase.Register, I18nBase>) {
|
export default function Register(props: PageProps<Extract<KcContextBase, { pageId: "register.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, messagesPerField, register, realm, passwordRequired, recaptchaRequired, recaptchaSiteKey } = kcContext;
|
const { url, messagesPerField, register, realm, passwordRequired, recaptchaRequired, recaptchaSiteKey } = kcContext;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function RegisterUserProfile(props: PageProps<KcContextBase.RegisterUserProfile, I18nBase>) {
|
export default function RegisterUserProfile(props: PageProps<Extract<KcContextBase, { pageId: "register-user-profile.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url, messagesPerField, recaptchaRequired, recaptchaSiteKey } = kcContext;
|
const { url, messagesPerField, recaptchaRequired, recaptchaSiteKey } = kcContext;
|
||||||
|
@ -9,11 +9,11 @@ import { useConst } from "../tools/useConst";
|
|||||||
import { useConstCallback } from "../tools/useConstCallback";
|
import { useConstCallback } from "../tools/useConstCallback";
|
||||||
import { Markdown } from "../tools/Markdown";
|
import { Markdown } from "../tools/Markdown";
|
||||||
import type { Extends } from "tsafe";
|
import type { Extends } from "tsafe";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function Terms(props: PageProps<KcContextBase.Terms, I18nBase>) {
|
export default function Terms(props: PageProps<Extract<KcContextBase, { pageId: "terms.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { clsx } from "../tools/clsx";
|
import { clsx } from "../tools/clsx";
|
||||||
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function UpdateUserProfile(props: PageProps<KcContextBase.UpdateUserProfile, I18nBase>) {
|
export default function UpdateUserProfile(props: PageProps<Extract<KcContextBase, { pageId: "update-user-profile.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
@ -3,11 +3,11 @@ import { clsx } from "../tools/clsx";
|
|||||||
import type { MessageKeyBase } from "../i18n";
|
import type { MessageKeyBase } from "../i18n";
|
||||||
import { base64url } from "rfc4648";
|
import { base64url } from "rfc4648";
|
||||||
import { useConstCallback } from "../tools/useConstCallback";
|
import { useConstCallback } from "../tools/useConstCallback";
|
||||||
import type { KcContextBase } from "../getKcContext";
|
|
||||||
import type { PageProps } from "../KcProps";
|
import type { PageProps } from "../KcProps";
|
||||||
|
import type { KcContextBase } from "../getKcContext";
|
||||||
import type { I18nBase } from "../i18n";
|
import type { I18nBase } from "../i18n";
|
||||||
|
|
||||||
export default function WebauthnAuthenticate(props: PageProps<KcContextBase.WebauthnAuthenticate, I18nBase>) {
|
export default function WebauthnAuthenticate(props: PageProps<Extract<KcContextBase, { pageId: "webauthn-authenticate.ftl" }>, I18nBase>) {
|
||||||
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
|
||||||
|
|
||||||
const { url } = kcContext;
|
const { url } = kcContext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user