From 6b8b95e4cae9a12413a1db961edeab90178923a0 Mon Sep 17 00:00:00 2001 From: coolcoala Date: Wed, 30 Jul 2025 06:28:56 +0300 Subject: [PATCH] traffic information has been reworked --- src/components/profile/profile-item.tsx | 33 +++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx index d8ce8788..19b7f6da 100644 --- a/src/components/profile/profile-item.tsx +++ b/src/components/profile/profile-item.tsx @@ -56,6 +56,7 @@ import { Loader2, Info, DownloadCloud, + Download, Trash2, Edit3, FileText as FileTextIcon, @@ -66,7 +67,7 @@ import { ListTree, CheckCircle, Infinity, - RefreshCw, + RefreshCw, Network, } from "lucide-react"; import { t } from "i18next"; @@ -343,8 +344,8 @@ export const ProfileItem = (props: Props) => {
{type} @@ -384,20 +385,21 @@ export const ProfileItem = (props: Props) => { )}
- - +
+
+ + + {parseTraffic(download)} + + + {total > 0 ? ( + {parseTraffic(total)} + ) : } - {hasExtra && total > 0 && ( -
- -
- - {parseTraffic(download)}↓ / {parseTraffic(upload)}↑ - - {parseTraffic(total)} +
- )} +
@@ -405,7 +407,6 @@ export const ProfileItem = (props: Props) => { className="w-56" onClick={(e) => e.stopPropagation()} > - {/* Объединяем все части меню */} {[...homeMenuItem, ...mainMenuItems].map((item) => ( { - {t("Update")} + {t("Update")}