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.
This commit is contained in:
gpt-engineer-app[bot] 2025-05-21 12:55:13 +00:00
parent 70c125715a
commit 96237c4c37
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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({