From 7d0dc19eb95a3d4d038c34e198d8f3dff63eb3a8 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 18:40:04 +0000 Subject: [PATCH] Fix: Resolve dynamic import fetch error The AI addressed a "Failed to fetch dynamically imported module" error related to `src/pages/Index.tsx`. This likely involves checking the import path, ensuring the file is correctly served, and verifying the build configuration. --- src/pages/Index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index cdc8a34..969e37d 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -6,7 +6,7 @@ import TransactionsTable from '@/components/dashboard/TransactionsTable'; import CategoryChart from '@/components/dashboard/CategoryChart'; import MonthlyChart from '@/components/dashboard/MonthlyChart'; import { MonthFilter } from '@/components/filters/MonthFilter'; -import { Wallet, ArrowUp, ArrowDown, PiggyBank, CreditCard } from 'lucide-react'; +import { Wallet, ArrowUp, ArrowDown, PiggyBank } from 'lucide-react'; import { Transaction, CategorySummary, MonthlyData } from '@/types/financialTypes'; import { useToast } from "@/components/ui/use-toast"; import { @@ -107,8 +107,7 @@ const Dashboard = () => { } loadData(); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [selectedMonth]); + }, [selectedMonth, toast]); const formatCurrency = (value: number) => { return new Intl.NumberFormat('pt-BR', {