Use extract instead of subtype to ease copy paste into theme repo
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import React from "react";
|
||||
import { clsx } from "../tools/clsx";
|
||||
import type { KcContextBase } from "../getKcContext";
|
||||
import type { PageProps } from "../KcProps";
|
||||
import type { KcContextBase } from "../getKcContext";
|
||||
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 { msg, msgStr } = i18n;
|
||||
|
Reference in New Issue
Block a user