From a62d2aff250b6c5656660c6561b04b14d701ad75 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 15 Mar 2025 04:25:08 +0000 Subject: [PATCH] Add icons to summary cards Added icons to the budget, expense, and savings items in the summary cards. --- src/pages/Analytics.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/pages/Analytics.tsx b/src/pages/Analytics.tsx index d3c1b83..364e6ef 100644 --- a/src/pages/Analytics.tsx +++ b/src/pages/Analytics.tsx @@ -4,7 +4,7 @@ import NavBar from '@/components/NavBar'; import ExpenseChart from '@/components/ExpenseChart'; import AddTransactionButton from '@/components/AddTransactionButton'; import { BarChart, Bar, XAxis, YAxis, Tooltip, ResponsiveContainer, Legend } from 'recharts'; -import { ChevronLeft, ChevronRight } from 'lucide-react'; +import { ChevronLeft, ChevronRight, Wallet, CreditCard, PiggyBank } from 'lucide-react'; const Analytics = () => { const [selectedPeriod, setSelectedPeriod] = useState('이번 달'); @@ -98,7 +98,10 @@ const Analytics = () => { {/* Summary Cards */}
예산
+예산
+{new Intl.NumberFormat('ko-KR', { style: 'currency', @@ -109,7 +112,10 @@ const Analytics = () => {
지출
+지출
+{new Intl.NumberFormat('ko-KR', { style: 'currency', @@ -120,7 +126,10 @@ const Analytics = () => {
저축
+저축
+{savingsPercentage}%