From 96237c4c3754683f7181a234882019f0e2f4ffc1 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 12:55:13 +0000 Subject: [PATCH] Fix: Resolve module import errors The commit fixes module import errors in `DespesaCartaoForm.tsx` and `useDespesaCartaoForm.ts` by ensuring the correct path to `despesasService` is used. This resolves the "cannot find module" errors. --- src/components/credito/DespesaCartaoForm.tsx | 2 +- src/hooks/useDespesaCartaoForm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/credito/DespesaCartaoForm.tsx b/src/components/credito/DespesaCartaoForm.tsx index beab68f..c6d002e 100644 --- a/src/components/credito/DespesaCartaoForm.tsx +++ b/src/components/credito/DespesaCartaoForm.tsx @@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import * as z from 'zod'; import { useToast } from '@/components/ui/use-toast'; -import { criarDespesa } from '@/services/cartao/despesasService'; +import { criarDespesa } from '@/services/cartao/despesas'; // Updated import path import { Form, FormControl, diff --git a/src/hooks/useDespesaCartaoForm.ts b/src/hooks/useDespesaCartaoForm.ts index 2a40721..ac0da26 100644 --- a/src/hooks/useDespesaCartaoForm.ts +++ b/src/hooks/useDespesaCartaoForm.ts @@ -5,7 +5,7 @@ import { zodResolver } from '@hookform/resolvers/zod'; import * as z from 'zod'; import { useToast } from '@/hooks/use-toast'; import { CartaoCredito } from '@/types/cartaoTypes'; -import { criarDespesa } from '@/services/cartao/despesasService'; +import { criarDespesa } from '@/services/cartao/despesas'; // Updated import path import { format } from 'date-fns'; const despesaCartaoSchema = z.object({