From 11e81917af4b950d3b33dd9362424a295c9c2cbd Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 18 Mar 2026 01:53:10 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=BB=D0=B0=D1=88=D0=BA=D1=83=20=D0=B2=D0=B5=D1=80=D0=B8?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D0=B0=D1=86=D0=B8=D0=B8=20email=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B2=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=80=D0=B8=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлен verification_enabled в EmailAuthEnabled тип - Баннер "Подтвердите email" скрыт когда верификация выключена - Бейдж "Не подтверждён" скрыт когда верификация выключена --- src/api/branding.ts | 1 + src/pages/Profile.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/branding.ts b/src/api/branding.ts index 7f97a61..094a0d2 100644 --- a/src/api/branding.ts +++ b/src/api/branding.ts @@ -21,6 +21,7 @@ export interface FullscreenEnabled { export interface EmailAuthEnabled { enabled: boolean; + verification_enabled?: boolean; } export interface GiftEnabled { diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx index c90d4ee..197ae83 100644 --- a/src/pages/Profile.tsx +++ b/src/pages/Profile.tsx @@ -107,6 +107,7 @@ export default function Profile() { staleTime: 60000, }); const isEmailAuthEnabled = emailAuthConfig?.enabled ?? true; + const isEmailVerificationEnabled = emailAuthConfig?.verification_enabled ?? true; // Build referral link for cabinet const referralLink = referralInfo?.referral_code @@ -474,13 +475,13 @@ export default function Profile() { {user.email} {user.email_verified ? ( {t('profile.verified')} - ) : ( + ) : isEmailVerificationEnabled ? ( {t('profile.notVerified')} - )} + ) : null} - {!user.email_verified && ( + {!user.email_verified && isEmailVerificationEnabled && (

{t('profile.verificationRequired')}