diff --git a/src/pages/Analytics.tsx b/src/pages/Analytics.tsx index 0e857cd..e0f3c8e 100644 --- a/src/pages/Analytics.tsx +++ b/src/pages/Analytics.tsx @@ -1,11 +1,9 @@ - import React, { useState } from 'react'; 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'; - const Analytics = () => { const [selectedPeriod, setSelectedPeriod] = useState('이번 달'); @@ -50,12 +48,10 @@ const Analytics = () => { income: 2550000, expense: 1740000 }]; - const totalIncome = 2550000; const totalExpense = 1740000; const savings = totalIncome - totalExpense; const savingsPercentage = Math.round(savings / totalIncome * 100); - return
{/* Header */} @@ -115,7 +111,7 @@ const Analytics = () => { {/* Monthly Comparison */}
-

월별 추이

+

월별 그래프

{
; }; - -export default Analytics; +export default Analytics; \ No newline at end of file