Use extract instead of subtype to ease copy paste into theme repo

This commit is contained in:
garronej
2023-02-27 11:55:25 +01:00
parent 93780b77e0
commit 53c0079656
21 changed files with 41 additions and 41 deletions

View File

@ -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;