mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +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]);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = startupConfig?.appTitle || 'LibreChat';
|
||||
}, [startupConfig?.appTitle]);
|
||||
|
||||
if (!startupConfig) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ const Registration: React.FC = () => {
|
|||
const { data: startupConfig } = useGetStartupConfig();
|
||||
const localize = useLocalize();
|
||||
|
||||
useEffect(() => {
|
||||
document.title = startupConfig?.appTitle || 'LibreChat';
|
||||
}, [startupConfig?.appTitle]);
|
||||
|
||||
const {
|
||||
register,
|
||||
watch,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue