Update setup

This commit is contained in:
garronej
2023-03-21 17:19:01 +01:00 Unverified
parent df76640100
commit cee8ea7ecb
19 changed files with 524 additions and 36 deletions
@@ -0,0 +1,18 @@
import type { PageProps } from "keycloakify/account/pages/PageProps";
import type { KcContext } from "../kcContext";
import type { I18n } from "../i18n";
export default function MyExtraPage1(props: PageProps<Extract<KcContext, { pageId: "my-extra-page-2.ftl"; }>, I18n>) {
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
// someCustomValue is declared by you in ../kcContext.ts
console.log(`TODO: Do something with: ${kcContext.someCustomValue}`);
return (
<Template {...{ kcContext, i18n, doUseDefaultCss, classes }} active="my-extra-page-2" >
<h1>Hello world 2</h1>
</Template>
);
}