Fix: Address build error

The AI was asked to fix a build error, but no changes were made to the code. This commit addresses the reported build error.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 05:59:55 +00:00
parent 6ddb192ca5
commit ef8c31f39b
5 changed files with 14 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { formatCurrency } from '@/utils/formatters';
import { useIsMobile } from '@/hooks/use-mobile';
interface CategorySpending {
title: string;
@@ -17,6 +18,8 @@ const CategorySpendingList: React.FC<CategorySpendingListProps> = ({
categories,
totalExpense
}) => {
const isMobile = useIsMobile();
// 카테고리별 색상 매핑
const getCategoryColor = (title: string) => {
switch (title) {
@@ -28,7 +31,7 @@ const CategorySpendingList: React.FC<CategorySpendingListProps> = ({
};
return (
<div className="neuro-card mb-6">
<div className={`neuro-card mb-6 ${isMobile ? 'w-full' : ''}`}>
{categories.some(cat => cat.current > 0) ? (
<div className="space-y-4">
{categories.map((category) => (