aboutsummaryrefslogtreecommitdiffstats
path: root/src/kc.gen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/kc.gen.tsx')
-rw-r--r--src/kc.gen.tsx26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/kc.gen.tsx b/src/kc.gen.tsx
index a9ac152..f2f261c 100644
--- a/src/kc.gen.tsx
+++ b/src/kc.gen.tsx
@@ -1,4 +1,5 @@
-/* prettier-ignore-start */
+// This file is auto-generated by the `update-kc-gen` command. Do not edit it manually.
+// Hash: 7852738310167426a221686c9b9e551f4ae0ecc2a7fefbea0f0ae4bf67a515f8
/* eslint-disable */
@@ -6,8 +7,6 @@
// noinspection JSUnusedGlobalSymbols
-// This file is auto-generated by Keycloakify
-
import { lazy, Suspense, type ReactNode } from "react";
export type ThemeName = "pydis-theme";
@@ -20,9 +19,12 @@ export const kcEnvNames: KcEnvName[] = [];
export const kcEnvDefaults: Record<KcEnvName, string> = {};
-export type KcContext =
- | import("./login/KcContext").KcContext
- ;
+/**
+ * NOTE: Do not import this type except maybe in your entrypoint.
+ * If you need to import the KcContext import it either from src/login/KcContext.ts or src/account/KcContext.ts.
+ * Depending on the theme type you are working on.
+ */
+export type KcContext = import("./login/KcContext").KcContext;
declare global {
interface Window {
@@ -32,22 +34,16 @@ declare global {
export const KcLoginPage = lazy(() => import("./login/KcPage"));
-export function KcPage(
- props: {
- kcContext: KcContext;
- fallback?: ReactNode;
- }
-) {
+export function KcPage(props: { kcContext: KcContext; fallback?: ReactNode }) {
const { kcContext, fallback } = props;
return (
<Suspense fallback={fallback}>
{(() => {
switch (kcContext.themeType) {
- case "login": return <KcLoginPage kcContext={kcContext} />;
+ case "login":
+ return <KcLoginPage kcContext={kcContext} />;
}
})()}
</Suspense>
);
}
-
-/* prettier-ignore-end */