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) => (

View File

@@ -17,7 +17,7 @@ const PeriodSelector: React.FC<PeriodSelectorProps> = ({
const isMobile = useIsMobile();
return (
<div className={`flex items-center justify-between mb-6 ${isMobile ? 'w-full' : ''}`}>
<div className={`flex items-center justify-between mb-6 ${isMobile ? 'w-full' : ''} w-full`}>
<button
className="neuro-flat p-2 rounded-full"
onClick={onPrevPeriod}

View File

@@ -18,7 +18,7 @@ const SummaryCards: React.FC<SummaryCardsProps> = ({
const isMobile = useIsMobile();
return (
<div className={`grid ${isMobile ? 'grid-cols-1 gap-3' : 'grid-cols-3 gap-3'} mb-8`}>
<div className={`grid ${isMobile ? 'grid-cols-1 gap-3' : 'grid-cols-3 gap-3'} mb-8 w-full`}>
<div className="neuro-card w-full">
<div className="flex items-center gap-2 mb-1 py-[5px]">
<Wallet size={24} className="text-gray-500" />