From 4958d3ca574c5726b5dd4f4f7fd8aaae97ad226f Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 12 Feb 2026 14:01:35 +0700 Subject: [PATCH] remove procent from MyContentStatsOverview and change icons --- src/app/styles/pages-styles.scss | 4 ++- src/app/ui/icons/icons.tsx | 8 +++++ .../new/my-content-stats-overview.tsx | 35 ++++++++++++------- 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index a54d600..c7c36c5 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -2362,7 +2362,9 @@ } .stat-icon { - font-size: 36px; + .icon { + transform: scale(1.5); + } } .stat-header { diff --git a/src/app/ui/icons/icons.tsx b/src/app/ui/icons/icons.tsx index 5759458..3f2960c 100644 --- a/src/app/ui/icons/icons.tsx +++ b/src/app/ui/icons/icons.tsx @@ -166,4 +166,12 @@ export function IconSearch() { return ( ) +} + +export function IconDiscet() { + return ( + + + + ) } \ No newline at end of file diff --git a/src/app/ui/my-content/new/my-content-stats-overview.tsx b/src/app/ui/my-content/new/my-content-stats-overview.tsx index 52bb1eb..9047861 100644 --- a/src/app/ui/my-content/new/my-content-stats-overview.tsx +++ b/src/app/ui/my-content/new/my-content-stats-overview.tsx @@ -3,7 +3,8 @@ import { useTranslations } from 'next-intl'; import { useQuery } from '@tanstack/react-query'; import { getUserFilesInfo } from '@/app/actions/action'; -import {convertBytes} from '@/app/lib/convertBytes'; +import { convertBytes } from '@/app/lib/convertBytes'; +import { IconDocument, IconShield, IconSearch, IconDiscet } from '@/app/ui/icons/icons'; export default function MyContentStatsOverview() { const t = useTranslations('Global'); @@ -19,37 +20,45 @@ export default function MyContentStatsOverview() { return (
-
+
-
📄
-
+0%
+
+ +
+ {/*
+0%
*/}
{filesInfo?.all_files_quantity}
Всего файлов
-
+
-
🛡
-
+0%
+
+ +
+ {/*
+0%
*/}
{filesInfo?.protected_files_count}
Защищено файлов
-
+
-
🔍
-
+0%
+
+ +
+ {/*
+0%
*/}
0
Проверок защиты
-
+
-
💾
-
+0%
+
+ +
+ {/*
+0%
*/}
{filesInfo?.all_files_size ? convertBytes(filesInfo?.all_files_size) : 0}
Хранилище