From 324aaa1f33475650e8c678b63f4370a2dae8cca2 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 24 Mar 2026 19:11:48 +0300 Subject: [PATCH] =?UTF-8?q?redesign:=20inline=20delete=20confirmation=20on?= =?UTF-8?q?=20web=20=E2=80=94=20expands=20in=20place=20instead=20of=20moda?= =?UTF-8?q?l/sheet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Subscription.tsx | 137 +++++++++++++++++-------------------- 1 file changed, 64 insertions(+), 73 deletions(-) diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index 09b87ee..84f8aa4 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -4,14 +4,6 @@ import { useTranslation } from 'react-i18next'; import { useNavigate, useParams } from 'react-router'; import { subscriptionApi } from '../api/subscription'; import { WebBackButton } from '../components/WebBackButton'; -import { - Sheet, - SheetContent, - SheetDescription, - SheetFooter, - SheetHeader, - SheetTitle, -} from '../components/primitives/Sheet'; import { useDestructiveConfirm } from '../platform/hooks/useNativeDialog'; import { usePlatform } from '../platform'; import TrafficProgressBar from '../components/dashboard/TrafficProgressBar'; @@ -1280,67 +1272,65 @@ export default function Subscription() { {/* Delete expired subscription */} {isMultiTariff && subscription && !subscription.is_active && !subscription.is_trial && ( - <> - - - {/* Web: Sheet confirmation */} - - - - {t('subscription.deleteTitle', 'Удалить подписку?')} - - {t( - 'subscription.deleteWarning', - 'Подписка будет удалена безвозвратно. Все данные, устройства и настройки будут потеряны. Это действие нельзя отменить.', - )} - - - + + + + {t('subscription.delete', 'Удалить подписку')} + + ) : ( +
+
+ {t('subscription.deleteTitle', 'Удалить подписку?')} +
+
+ {t( + 'subscription.deleteWarning', + 'Подписка будет удалена безвозвратно. Все данные, устройства и настройки будут потеряны. Это действие нельзя отменить.', + )} +
+
- - - - +
+
+ )} + )} {/* Additional Options (Buy Devices) */}