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:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user