mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
fix: Login/Registration Dynamic page titles based on APP_TITLE
This commit is contained in:
parent
79840763e7
commit
b4a3efbc4d
2 changed files with 8 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ function Login() {
|
||||||
}
|
}
|
||||||
}, [isAuthenticated, navigate]);
|
}, [isAuthenticated, navigate]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = startupConfig?.appTitle || 'LibreChat';
|
||||||
|
}, [startupConfig?.appTitle]);
|
||||||
|
|
||||||
if (!startupConfig) {
|
if (!startupConfig) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ const Registration: React.FC = () => {
|
||||||
const { data: startupConfig } = useGetStartupConfig();
|
const { data: startupConfig } = useGetStartupConfig();
|
||||||
const localize = useLocalize();
|
const localize = useLocalize();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = startupConfig?.appTitle || 'LibreChat';
|
||||||
|
}, [startupConfig?.appTitle]);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
watch,
|
watch,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue