Skip to content

Commit

Permalink
feat: replace static values with animated count-up for investment tot…
Browse files Browse the repository at this point in the history
…als on dashboard
  • Loading branch information
GGWPXXXX committed Nov 10, 2024
1 parent b2bc876 commit 7e4a237
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function Dashboard() {
username: string;
}[]
);
console.table(latestInvestment);
// console.table(latestInvestment);
}
};
setTopLatestInvestment();
Expand Down Expand Up @@ -198,7 +198,9 @@ export default function Dashboard() {
</svg>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">+2350</div>
<div className="text-2xl font-bold">
+<CountUp end={2350} duration={1} />
</div>
{/* <p className="text-xs text-muted-foreground">
+180.1% from last month
</p> */}
Expand All @@ -223,7 +225,9 @@ export default function Dashboard() {
</svg>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">+12,234</div>
<div className="text-2xl font-bold">
+<CountUp end={12234} duration={1} />
</div>
{/* <p className="text-xs text-muted-foreground">
+19% from last month
</p> */}
Expand Down

0 comments on commit 7e4a237

Please sign in to comment.