Add icons to summary cards
Added icons to the budget, expense, and savings items in the summary cards.
This commit is contained in:
@@ -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 */}
|
||||
<div className="grid grid-cols-3 gap-3 mb-8">
|
||||
<div className="neuro-card">
|
||||
<p className="text-xs text-gray-500 mb-1">예산</p>
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<Wallet size={16} className="text-gray-500" />
|
||||
<p className="text-xs text-gray-500">예산</p>
|
||||
</div>
|
||||
<p className="text-sm font-bold text-neuro-income">
|
||||
{new Intl.NumberFormat('ko-KR', {
|
||||
style: 'currency',
|
||||
@@ -109,7 +112,10 @@ const Analytics = () => {
|
||||
</p>
|
||||
</div>
|
||||
<div className="neuro-card">
|
||||
<p className="text-xs text-gray-500 mb-1">지출</p>
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<CreditCard size={16} className="text-gray-500" />
|
||||
<p className="text-xs text-gray-500">지출</p>
|
||||
</div>
|
||||
<p className="text-sm font-bold text-neuro-income">
|
||||
{new Intl.NumberFormat('ko-KR', {
|
||||
style: 'currency',
|
||||
@@ -120,7 +126,10 @@ const Analytics = () => {
|
||||
</p>
|
||||
</div>
|
||||
<div className="neuro-card">
|
||||
<p className="text-xs text-gray-500 mb-1">저축</p>
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<PiggyBank size={16} className="text-gray-500" />
|
||||
<p className="text-xs text-gray-500">저축</p>
|
||||
</div>
|
||||
<p className="text-sm font-bold text-neuro-income">
|
||||
{savingsPercentage}%
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user