From 8858bbca9e06ccd74f2d108d8e724591f897de9e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 09:47:20 +0000 Subject: [PATCH] Refactor SummaryCards component Modify SummaryCards to display icon and title in one line with the amount below, centered. --- src/components/analytics/SummaryCards.tsx | 54 ++++++++++------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/src/components/analytics/SummaryCards.tsx b/src/components/analytics/SummaryCards.tsx index 9a5a5b4..0c3d5d1 100644 --- a/src/components/analytics/SummaryCards.tsx +++ b/src/components/analytics/SummaryCards.tsx @@ -24,43 +24,37 @@ const SummaryCards: React.FC = ({ return (
-
-
- -

예산

-
-

- {formatCurrency(totalBudget)} -

+
+ +

예산

+

+ {formatCurrency(totalBudget)} +

-
-
- -

지출

-
-

- {formatCurrency(totalExpense)} -

+
+ +

지출

+

+ {formatCurrency(totalExpense)} +

-
-
- -

잔액

-
- {isOverBudget ? ( -

- 초과액: {formatCurrency(Math.abs(remainingBudget))} -

- ) : ( -

- {formatCurrency(remainingBudget)} -

- )} +
+ +

잔액

+ {isOverBudget ? ( +

+ 초과액: {formatCurrency(Math.abs(remainingBudget))} +

+ ) : ( +

+ {formatCurrency(remainingBudget)} +

+ )}
);