diff --git a/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx b/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx index 92d6405..f505048 100644 --- a/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx +++ b/dashboard/src/features/users/components/widgets/users-stats-widget/index.tsx @@ -13,10 +13,11 @@ interface UsersStatsWidgetProps { expired: number; on_hold: number; limited: number; + total: number; } export const UsersStatsWidget: FC = ({ - active, online, expired, on_hold, limited + active, online, expired, on_hold, limited, total, }) => { const { t } = useTranslation(); @@ -28,8 +29,6 @@ export const UsersStatsWidget: FC = ({ { symbol: "Limited", amount: limited, color: "fill-red-500" }, ]; - const total = active + online + expired + on_hold + limited - return ( {t('users')} } diff --git a/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts b/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts index d68f226..c1a34d2 100644 --- a/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts +++ b/dashboard/src/features/users/components/widgets/users-stats-widget/users-stats-widget.stories.ts @@ -22,5 +22,6 @@ export const UsersChart: WidgetStory = { expired: 10, on_hold: 5, limited: 5, + total: 70, } }