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:
parent
70c125715a
commit
96237c4c37
@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form';
|
|||||||
import { zodResolver } from '@hookform/resolvers/zod';
|
import { zodResolver } from '@hookform/resolvers/zod';
|
||||||
import * as z from 'zod';
|
import * as z from 'zod';
|
||||||
import { useToast } from '@/components/ui/use-toast';
|
import { useToast } from '@/components/ui/use-toast';
|
||||||
import { criarDespesa } from '@/services/cartao/despesasService';
|
import { criarDespesa } from '@/services/cartao/despesas'; // Updated import path
|
||||||
import {
|
import {
|
||||||
Form,
|
Form,
|
||||||
FormControl,
|
FormControl,
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|||||||
import * as z from 'zod';
|
import * as z from 'zod';
|
||||||
import { useToast } from '@/hooks/use-toast';
|
import { useToast } from '@/hooks/use-toast';
|
||||||
import { CartaoCredito } from '@/types/cartaoTypes';
|
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';
|
import { format } from 'date-fns';
|
||||||
|
|
||||||
const despesaCartaoSchema = z.object({
|
const despesaCartaoSchema = z.object({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user