mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-14 08:32:33 +00:00
Remove Total Balance card from Analytics view
Co-authored-by: elisiariocouto <818914+elisiariocouto@users.noreply.github.com>
This commit is contained in:
committed by
Elisiário Couto
parent
318ca517f7
commit
990d0295b3
@@ -5,7 +5,6 @@ import {
|
|||||||
CreditCard,
|
CreditCard,
|
||||||
TrendingUp,
|
TrendingUp,
|
||||||
TrendingDown,
|
TrendingDown,
|
||||||
DollarSign,
|
|
||||||
Activity,
|
Activity,
|
||||||
Users,
|
Users,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
@@ -47,8 +46,8 @@ function AnalyticsDashboard() {
|
|||||||
<div className="p-6">
|
<div className="p-6">
|
||||||
<div className="animate-pulse">
|
<div className="animate-pulse">
|
||||||
<div className="h-8 bg-gray-200 rounded w-48 mb-6"></div>
|
<div className="h-8 bg-gray-200 rounded w-48 mb-6"></div>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
|
||||||
{[...Array(4)].map((_, i) => (
|
{[...Array(3)].map((_, i) => (
|
||||||
<div key={i} className="h-32 bg-gray-200 rounded"></div>
|
<div key={i} className="h-32 bg-gray-200 rounded"></div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@@ -61,11 +60,6 @@ function AnalyticsDashboard() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const totalBalance = accounts?.reduce((sum, account) => {
|
|
||||||
const primaryBalance = account.balances?.[0]?.amount || 0;
|
|
||||||
return sum + primaryBalance;
|
|
||||||
}, 0) || 0;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 space-y-8">
|
<div className="p-6 space-y-8">
|
||||||
{/* Time Period Filter */}
|
{/* Time Period Filter */}
|
||||||
@@ -76,13 +70,7 @@ function AnalyticsDashboard() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Stats Cards */}
|
{/* Stats Cards */}
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
<StatCard
|
|
||||||
title="Total Balance"
|
|
||||||
value={`€${totalBalance.toLocaleString()}`}
|
|
||||||
subtitle={`Across ${accounts?.length || 0} accounts`}
|
|
||||||
icon={DollarSign}
|
|
||||||
/>
|
|
||||||
<StatCard
|
<StatCard
|
||||||
title="Total Transactions"
|
title="Total Transactions"
|
||||||
value={stats?.total_transactions || 0}
|
value={stats?.total_transactions || 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user