WIP
This commit is contained in:
1 parent
184139f284
commit
2a10ec9a20
7 files changed
+216
-6
No files matched your search
+1
-1
@@ -24,7 +24,7 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.9.0",
|
"@emotion/react": "^11.9.0",
|
||||||
"keycloakify": "^6.0.0",
|
"keycloakify": "^6.0.2",
|
||||||
"react": "18.1.0",
|
"react": "18.1.0",
|
||||||
"react-dom": "18.1.0",
|
"react-dom": "18.1.0",
|
||||||
"evt": "^2.4.1"
|
"evt": "^2.4.1"
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ import type { KcContext } from "./kcContext";
|
|||||||
import KcAppBase, { defaultKcProps } from "keycloakify";
|
import KcAppBase, { defaultKcProps } from "keycloakify";
|
||||||
import { useI18n } from "./i18n";
|
import { useI18n } from "./i18n";
|
||||||
|
|
||||||
|
const Register = lazy(() => import("./Register"));
|
||||||
const Terms = lazy(() => import("./Terms"));
|
const Terms = lazy(() => import("./Terms"));
|
||||||
|
const MyExtraPage1 = lazy(() => import("./MyExtraPage1"));
|
||||||
|
const MyExtraPage2 = lazy(() => import("./MyExtraPage2"));
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
kcContext: KcContext;
|
kcContext: KcContext;
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { memo } from "react";
|
||||||
|
import type { KcProps } from "keycloakify";
|
||||||
|
import type { KcContext } from "./kcContext";
|
||||||
|
import type { I18n } from "./i18n";
|
||||||
|
|
||||||
|
type KcContext_MyExtraPage1 = Extract<KcContext, { pageId: "my-extra-page-1.ftl"; }>;
|
||||||
|
|
||||||
|
const MyExtraPage1 = memo(({ kcContext, i18n, ...props }: { kcContext: KcContext_MyExtraPage1; i18n: I18n; } & KcProps) => {
|
||||||
|
|
||||||
|
return <>It is up to you to implement this page</>
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
export default MyExtraPage1;
|
||||||
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user