From d3ec833ab7fbf67f044463ad46a370429b7db1de Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 14 Nov 2026 16:45:02 +0100 Subject: [PATCH] refactor(client): keep the login page's language corner class in a module of its own --- client/src/pages/LoginPage.tsx | 6 ++---- client/src/pages/login/languageCorner.ts | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 client/src/pages/login/languageCorner.ts diff --git a/client/src/pages/LoginPage.tsx b/client/src/pages/LoginPage.tsx index 33f6a8ee1..0c6e12669 100644 --- a/client/src/pages/LoginPage.tsx +++ b/client/src/pages/LoginPage.tsx @@ -18,6 +18,7 @@ import { IDP_LOGIN_URL, useLogin } from './login/useLogin'; import LoginWorld from './login/LoginWorld'; import NativeServerLink from './login/NativeServerLink'; import MfaCodeStep from './login/MfaCodeStep'; +import { LANGUAGE_CORNER_CLASS } from './login/languageCorner'; import PasswordChecklist from '../components/shared/PasswordChecklist'; /** Fixed so the sky does not reshuffle on every render. */ @@ -228,10 +229,7 @@ export default function LoginPage(): React.ReactElement { return (
- {/* Language dropdown, below the status bar in the app and under a notch, not behind them, and - beside an element in the top corner, such as an iPhone Duo's status capsule. The insets the - iOS app measures (--trek-native-*) are a floor under env(), as in the touch shell. */} -
+