Update Template.tsx
This commit is contained in:
parent
0c0c81d5e7
commit
d5a3cf3b02
|
@ -1,5 +1,6 @@
|
|||
// Copy pasted from: https://github.com/InseeFrLab/keycloakify/blob/main/src/login/Template.tsx
|
||||
|
||||
import { useState } from "react";
|
||||
import { assert } from "keycloakify/tools/assert";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { usePrepareTemplate } from "keycloakify/lib/usePrepareTemplate";
|
||||
|
@ -43,6 +44,8 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
|
|||
"bodyClassName": getClassName("kcBodyClass")
|
||||
});
|
||||
|
||||
useState(()=> { document.title = i18n.msgStr("loginTitle", kcContext.realm.displayName); });
|
||||
|
||||
if (!isReady) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue