From feee9f9c05b2f872173ef6d4951bf2db8065514a Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 11:14:58 +0300 Subject: [PATCH] fix(theming): replace off-token TelegramCallback/VerifyEmail with design tokens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both pages were rendering with raw Tailwind gray-* + a non-existent border-primary-600 class (invisible spinner). Map: bg-gray-50 → bg-dark-950, text-gray-900 → text-dark-50, text-gray-500 → text-dark-400, border-primary-600 → border-accent-500. Pages now match the dark theme and the spinner is visible. --- src/pages/TelegramCallback.tsx | 14 +++++++------- src/pages/VerifyEmail.tsx | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/pages/TelegramCallback.tsx b/src/pages/TelegramCallback.tsx index e2153c0..981327e 100644 --- a/src/pages/TelegramCallback.tsx +++ b/src/pages/TelegramCallback.tsx @@ -64,11 +64,11 @@ export default function TelegramCallback() { if (error) { return ( -
+
-

{t('auth.loginFailed')}

-

{error}

+

{t('auth.loginFailed')}

+

{error}

@@ -78,11 +78,11 @@ export default function TelegramCallback() { } return ( -
+
-
-

{t('auth.authenticating')}

-

{t('common.loading')}

+
+

{t('auth.authenticating')}

+

{t('common.loading')}

); diff --git a/src/pages/VerifyEmail.tsx b/src/pages/VerifyEmail.tsx index d17ea65..e7d473c 100644 --- a/src/pages/VerifyEmail.tsx +++ b/src/pages/VerifyEmail.tsx @@ -66,7 +66,7 @@ export default function VerifyEmail() { }, [searchParams, t, navigate, setTokens, setUser, checkAdminStatus]); return ( -
+
{/* Language switcher in corner */}
@@ -75,11 +75,11 @@ export default function VerifyEmail() {
{status === 'loading' && (
-
-

+
+

{t('emailVerification.verifying')}

-

+

{t('emailVerification.pleaseWait')}

@@ -88,14 +88,14 @@ export default function VerifyEmail() { {status === 'success' && (
-

+

{t('emailVerification.success')}

-

+

{t('emailVerification.redirecting', 'Redirecting to dashboard...')}

-
+
)} @@ -103,10 +103,10 @@ export default function VerifyEmail() { {status === 'error' && (
-

+

{t('emailVerification.failed')}

-

{error}

+

{error}

{t('emailVerification.goToLogin')}