Fix: Resolve TypeScript errors

- Import `CloudSync` from `lucide-react`
- Define `EXPENSE_CATEGORIES` in `AddTransactionButton.tsx`
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 05:10:53 +00:00
parent 1ad6e5b685
commit 7eae68150b
2 changed files with 5 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ interface ExpenseFormValues {
category: string; category: string;
} }
// Define expense categories
const EXPENSE_CATEGORIES = ['식비', '생활비', '교통비'];
// Define category icons mapping // Define category icons mapping
const categoryIcons: Record<string, React.ReactNode> = { const categoryIcons: Record<string, React.ReactNode> = {
: <Coffee size={18} />, : <Coffee size={18} />,

View File

@@ -3,7 +3,7 @@ import React, { useState, useEffect } from 'react';
import { Button } from '@/components/ui/button'; import { Button } from '@/components/ui/button';
import { Switch } from '@/components/ui/switch'; import { Switch } from '@/components/ui/switch';
import { Label } from '@/components/ui/label'; import { Label } from '@/components/ui/label';
import { Loader2, CloudSync } from 'lucide-react'; import { Loader2, CloudUpload } from 'lucide-react';
import { isSyncEnabled, setSyncEnabled, syncAllData } from '@/utils/syncUtils'; import { isSyncEnabled, setSyncEnabled, syncAllData } from '@/utils/syncUtils';
import { supabase } from '@/lib/supabase'; import { supabase } from '@/lib/supabase';
import { toast } from '@/components/ui/use-toast'; import { toast } from '@/components/ui/use-toast';
@@ -100,7 +100,7 @@ const SyncSettings = () => {
</> </>
) : ( ) : (
<> <>
<CloudSync className="mr-2 h-4 w-4" /> <CloudUpload className="mr-2 h-4 w-4" />
</> </>
)} )}