Fix Log in title not working and not localised

This commit is contained in:
Lim Chee Aun 2025-01-14 12:52:37 +08:00
parent f432d2c897
commit 49a8b45438
2 changed files with 2 additions and 1 deletions

1
src/locales/en.po generated
View file

@ -1405,6 +1405,7 @@ msgid "Accounts…"
msgstr ""
#: src/components/nav-menu.jsx:315
#: src/pages/login.jsx:27
#: src/pages/login.jsx:190
#: src/pages/status.jsx:837
#: src/pages/welcome.jsx:65

View file

@ -24,7 +24,7 @@ const { PHANPY_DEFAULT_INSTANCE: DEFAULT_INSTANCE } = import.meta.env;
function Login() {
const { t } = useLingui();
useTitle('Log in');
useTitle(t`Log in`, '/login');
const instanceURLRef = useRef();
const cachedInstanceURL = store.local.get('instanceURL');
const [uiState, setUIState] = useState('default');