From 2931abc6d9ac3ffe04337c8d9ba61a9ec4410210 Mon Sep 17 00:00:00 2001 From: yznahmad Date: Mon, 23 Jun 2025 00:26:48 +0300 Subject: [PATCH] Add s s 8854yh499j404040 --- .../components/dashboard/home/generalLook.tsx | 84 +++++++++++++++++-- 1 file changed, 77 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/dashboard/home/generalLook.tsx b/webapp/src/components/dashboard/home/generalLook.tsx index 7869f56..a4c3e4b 100644 --- a/webapp/src/components/dashboard/home/generalLook.tsx +++ b/webapp/src/components/dashboard/home/generalLook.tsx @@ -1,8 +1,7 @@ import { useTranslations } from 'next-intl'; import { useAppSelector } from '@/redux/store'; -export default function GeneralLook() -{ +export default function GeneralLook() { const t = useTranslations('statistics'); const report = useAppSelector((state) => state.statisticsReducer.value.report) @@ -35,7 +34,11 @@ export default function GeneralLook() value: report?.disActiveMembersCount?.value ?? 0, label: t('totalUnActiveMembers'), bgColor: 'bg-error' - }, + } + ]; + + + const stats2 = [ { icon: 'services', value: report?.servicesCount?.value ?? 0, @@ -53,7 +56,13 @@ export default function GeneralLook() value: report?.disActiveServicesCount?.value ?? 0, label: t('totalUnActiveServices'), bgColor: 'bg-error' - }, + } + ]; + + + + + const stats3 = [ { icon: 'activeSubscriptions', value: report?.activeSubscriptionsCount?.value ?? 0, @@ -74,14 +83,18 @@ export default function GeneralLook() } ]; + return (
- {stats.map((stat, index) => ( + + + {/* {stats.map((stat, index) => (
+
- + @@ -89,8 +102,65 @@ export default function GeneralLook()

{stat.label}

+
- ))} + ))} */} + + +
+ + {stats.map((stat, index) => ( + +
+ + + + + + +

{stat.value}

+

{stat.label}

+
+
+ ))} + + {stats2.map((stat, index) => ( + +
+ + + + + + +

{stat.value}

+

{stat.label}

+
+
+ ))} + + + + {stats3.map((stat, index) => ( + +
+ + + + + + +

{stat.value}

+

{stat.label}

+
+
+ ))} + +
+ + + +
) } \ No newline at end of file