Update analytics page
Update icons and amount display on the analytics page.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import NavBar from '@/components/NavBar';
|
||||
import ExpenseChart from '@/components/ExpenseChart';
|
||||
@@ -99,35 +98,33 @@ const Analytics = () => {
|
||||
<div className="grid grid-cols-3 gap-3 mb-8">
|
||||
<div className="neuro-card">
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<Wallet size={16} className="text-gray-500" />
|
||||
<Wallet size={24} 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',
|
||||
currency: 'KRW',
|
||||
notation: 'compact',
|
||||
maximumFractionDigits: 1
|
||||
maximumFractionDigits: 0
|
||||
}).format(totalBudget)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="neuro-card">
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<CreditCard size={16} className="text-gray-500" />
|
||||
<CreditCard size={24} 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',
|
||||
currency: 'KRW',
|
||||
notation: 'compact',
|
||||
maximumFractionDigits: 1
|
||||
maximumFractionDigits: 0
|
||||
}).format(totalExpense)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="neuro-card">
|
||||
<div className="flex items-center gap-2 mb-1">
|
||||
<PiggyBank size={16} className="text-gray-500" />
|
||||
<PiggyBank size={24} className="text-gray-500" />
|
||||
<p className="text-xs text-gray-500">저축</p>
|
||||
</div>
|
||||
<p className="text-sm font-bold text-neuro-income">
|
||||
|
||||
Reference in New Issue
Block a user