[MVPTN-99] refactor(Estrutura): Refatoração de estrutura do projeto, adicionado favicon
This commit is contained in:
parent
3aa4c73453
commit
7f9b7944db
34 changed files with 97 additions and 76 deletions
BIN
public/images/favicon.ico
Normal file
BIN
public/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
public/images/logo-abb.png
Normal file
BIN
public/images/logo-abb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
|
|
@ -3,17 +3,17 @@
|
|||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import TPessoaTable from '../../../_components/t_pessoa/TPessoaTable';
|
||||
import TPessoaForm from '../../../_components/t_pessoa/TPessoaForm';
|
||||
import TPessoaTable from '@/packages/administrativo/components/t_pessoa/fisica/TPessoaFisicaTable';
|
||||
import TPessoaForm from '@/packages/administrativo/components/t_pessoa/fisica/TPessoaFisicaForm';
|
||||
|
||||
import { useTPessoaIndexHook } from '../../../_hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import { useTPessoaSaveHook } from '../../../_hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '../../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
import { useTPessoaIndexHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import { useTPessoaSaveHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
|
||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '@/packages/administrativo/interfaces/TPessoaInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
|
||||
export default function TPessoaFisica() {
|
||||
|
|
@ -4,17 +4,17 @@ import React, { useEffect, useState, useCallback } from 'react';
|
|||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
|
||||
import { useTPessoaSaveHook } from '../../../_hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '../../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
import { useTPessoaSaveHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
|
||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '@/packages/administrativo/interfaces/TPessoaInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import TPessoaJuridicaTable from '../../../_components/t_pessoa/juridica/TPessoaJuridicaTable';
|
||||
import { useTPessoaJuridicaIndexHook } from '../../../_hooks/t_pessoa/juridica/useTPessoaJuridicaIndexHook';
|
||||
import TPessoaJuridicaForm from '../../../_components/t_pessoa/juridica/TPessoaJuridicaForm';
|
||||
import TPessoaJuridicaTable from '@/packages/administrativo/components/t_pessoa/juridica/TPessoaJuridicaTable';
|
||||
import { useTPessoaJuridicaIndexHook } from '@/packages/administrativo/hooks/t_pessoa/juridica/useTPessoaJuridicaIndexHook';
|
||||
import TPessoaJuridicaForm from '@/packages/administrativo/components/t_pessoa/juridica/TPessoaJuridicaForm';
|
||||
|
||||
export default function TPessoaFisica() {
|
||||
// Controle de estado do botão
|
||||
|
|
@ -28,8 +28,11 @@ const geistMono = Geist_Mono({
|
|||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Create Next App',
|
||||
description: 'Generated by create next app',
|
||||
title: 'SAAS - Orius Tecnologia',
|
||||
description: 'Evolução tecnológica com toque humano',
|
||||
icons: {
|
||||
icon: '/images/favicon.ico',
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
|
@ -53,11 +56,15 @@ export default function RootLayout({
|
|||
<Breadcrumb>
|
||||
<BreadcrumbList>
|
||||
<BreadcrumbItem className="hidden md:block">
|
||||
<BreadcrumbLink href="#">Building Your Application</BreadcrumbLink>
|
||||
<BreadcrumbLink href="#">
|
||||
Building Your Application
|
||||
</BreadcrumbLink>
|
||||
</BreadcrumbItem>
|
||||
<BreadcrumbSeparator className="hidden md:block" />
|
||||
<BreadcrumbItem>
|
||||
<BreadcrumbPage>Data Fetching</BreadcrumbPage>
|
||||
<BreadcrumbPage>
|
||||
Data Fetching
|
||||
</BreadcrumbPage>
|
||||
</BreadcrumbItem>
|
||||
</BreadcrumbList>
|
||||
</Breadcrumb>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
} from '@/components/ui/sidebar';
|
||||
|
||||
import useGUsuarioGetJWTHook from '@/hooks/auth/useGUsuarioGetJWTHook';
|
||||
import Image from 'next/image';
|
||||
|
||||
// This is sample data.
|
||||
const data = {
|
||||
|
|
@ -75,6 +76,22 @@ const data = {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Pessoas',
|
||||
url: '#',
|
||||
icon: SquareTerminal,
|
||||
isActive: false,
|
||||
items: [
|
||||
{
|
||||
title: 'Físicas',
|
||||
url: '/administrativo/pessoas/fisicas',
|
||||
},
|
||||
{
|
||||
title: 'Jurídicas',
|
||||
url: '/administrativo/pessoas/fisicas',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Cadastros',
|
||||
url: '#',
|
||||
|
|
@ -144,14 +161,6 @@ const data = {
|
|||
title: 'Censec/Centrais',
|
||||
url: '/cadastros/censec/',
|
||||
},
|
||||
{
|
||||
title: 'Pessoas/Físicas',
|
||||
url: '/cadastros/pessoa/fisica',
|
||||
},
|
||||
{
|
||||
title: 'Pessoas/Jurídica',
|
||||
url: '/cadastros/pessoa/juridica',
|
||||
},
|
||||
{
|
||||
title: 'Imovel/Urbano',
|
||||
url: '/cadastros/imoveis/urbanos',
|
||||
|
|
@ -226,7 +235,6 @@ const data = {
|
|||
|
||||
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
const { userAuthenticated } = useGUsuarioGetJWTHook();
|
||||
|
||||
return (
|
||||
<Sidebar collapsible="icon" {...props}>
|
||||
<SidebarHeader>
|
||||
|
|
@ -236,28 +244,34 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|||
<a href="#">
|
||||
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
|
||||
<GalleryVerticalEnd className="size-4" />
|
||||
<Image
|
||||
src="/images/logo-abb.png"
|
||||
alt="Logo do site"
|
||||
width={100}
|
||||
height={100}
|
||||
className='rounded-lg'
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-0.5 leading-none">
|
||||
<span className="font-semibold">Orius Tecnologia</span>
|
||||
|
||||
<span className="">25.9.1</span>
|
||||
<span className="font-semibold">
|
||||
Orius Tecnologia
|
||||
</span>
|
||||
<span className="">
|
||||
25.9.1
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuItem>
|
||||
</SidebarMenu>
|
||||
</SidebarHeader>
|
||||
|
||||
<SidebarContent>
|
||||
<NavMain items={data.navMain} />
|
||||
<NavProjects projects={data.projects} />
|
||||
</SidebarContent>
|
||||
|
||||
<SidebarFooter>
|
||||
{userAuthenticated?.data ? <NavUser user={userAuthenticated.data} /> : 'Carregando...'}
|
||||
</SidebarFooter>
|
||||
|
||||
<SidebarRail />
|
||||
</Sidebar>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import {
|
|||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
import { TPessoaSchema } from '../../_schemas/TPessoaSchema';
|
||||
import { TPessoaSchema } from '../../../schemas/TPessoaFisicaSchema';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import {
|
||||
|
|
@ -37,10 +37,10 @@ import {
|
|||
} from '@/components/ui/select';
|
||||
import { CheckIcon, ChevronsUpDownIcon, HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
||||
import { Sexo } from '@/enums/SexoEnum';
|
||||
import { useGTBEstadoCivilReadHook } from '../../_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBEstadoCivilReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||
import GetCapitalize from '@/actions/text/GetCapitalize';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBProfissaoReadHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBProfissaoReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||
import {
|
||||
Command,
|
||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
|||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
||||
|
|
@ -25,12 +25,12 @@ import {
|
|||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
import { TPessoaSchema } from '../../../_schemas/TPessoaSchema';
|
||||
import { TPessoaSchema } from '../../../schemas/TPessoaFisicaSchema';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
||||
import { Textarea } from '@/components/ui/textarea';
|
||||
import { useTPessoaRepresentanteIndexHook } from '../../../_hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||
import { useTPessoaRepresentanteIndexHook } from '../../../hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||
import TPessoaRepresentantePage from '../../t_pessoa_representante/TPessoaRepresentantePage';
|
||||
|
||||
type FormValues = z.infer<typeof TPessoaSchema>;
|
||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
|||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||
|
||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
||||
|
|
@ -25,7 +25,7 @@ import {
|
|||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
import { TPessoaSchema } from '../../_schemas/TPessoaSchema';
|
||||
import { TPessoaSchema } from '../../schemas/TPessoaFisicaSchema';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import {
|
||||
|
|
@ -47,10 +47,10 @@ import {
|
|||
UserIcon,
|
||||
} from 'lucide-react';
|
||||
import { Sexo } from '@/enums/SexoEnum';
|
||||
import { useGTBEstadoCivilReadHook } from '../../_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||
import { useGTBEstadoCivilReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||
import GetCapitalize from '@/actions/text/GetCapitalize';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBProfissaoReadHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||
import { useGTBRegimeComunhaoReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||
import { useGTBProfissaoReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||
import {
|
||||
Command,
|
||||
|
|
@ -61,9 +61,9 @@ import {
|
|||
CommandList,
|
||||
} from '@/components/ui/command';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useTPessoaIndexHook } from '../../_hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import TPessoaTable from '../t_pessoa/TPessoaTable';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { useTPessoaIndexHook } from '../../hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import TPessoaTable from '../t_pessoa/fisica/TPessoaFisicaTable';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { ColumnDef } from '@tanstack/react-table';
|
||||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||
import empty from '@/actions/validations/empty';
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
import React, { useEffect, useState, useCallback } from 'react';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import TPessoaForm from '../../_components/t_pessoa/TPessoaForm';
|
||||
import TPessoaForm from '../t_pessoa/fisica/TPessoaFisicaForm';
|
||||
|
||||
import { useTPessoaIndexHook } from '../../_hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import { useTPessoaSaveHook } from '../../_hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
import { useTPessoaIndexHook } from '../../hooks/t_pessoa/useTPessoaIndexHook';
|
||||
import { useTPessoaSaveHook } from '../../hooks/t_pessoa/useTPessoaSaveHook';
|
||||
import { useTPessoaDeleteHook } from '../../hooks/t_pessoa/useTPessoaDeleteHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import TPessoaRepresentanteTable from './TPessoaRepresentanteTable';
|
||||
import { useTPessoaRepresentanteIndexHook } from '../../_hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||
import { useTPessoaRepresentanteIndexHook } from '../../hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import TPessoaRepresentanteForm from './TPessoaRepresentanteForm';
|
||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
|||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||
import empty from '@/actions/validations/empty';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import TPessoaJuridicaInterface from '../../../_interfaces/TPessoaJuridicaInterface';
|
||||
import { TCensecDeleteService } from '../../../_services/t_censec/TCensecDeleteService';
|
||||
import TPessoaJuridicaInterface from '../../../interfaces/TPessoaJuridicaInterface';
|
||||
import { TCensecDeleteService } from '../../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||
|
||||
export const useTPessoaJuridicaDeleteHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { TPessoaJuridicaIndexService } from '../../../_services/t_pessoa/juridica/TPessoaJuridicaIndexService';
|
||||
import { TPessoaJuridicaIndexService } from '../../../services/t_pessoa/juridica/TPessoaJuridicaIndexService';
|
||||
import { useState } from 'react';
|
||||
import TPessoaJuridicaInterface from '../../../_interfaces/TPessoaJuridicaInterface';
|
||||
import TPessoaJuridicaInterface from '../../../interfaces/TPessoaJuridicaInterface';
|
||||
|
||||
export const useTPessoaJuridicaIndexHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../../_services/t_censec/TCensecSaveService';
|
||||
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||
|
||||
export const useTPessoaJuridicaSaveHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { TCensecDeleteService } from '../../_services/t_censec/TCensecDeleteService';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { TCensecDeleteService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||
|
||||
export const useTPessoaDeleteHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { TPessoaIndexService } from '../../_services/t_pessoa/TPessoaIndexService';
|
||||
import { TPessoaIndexService } from '../../services/t_pessoa/TPessoaIndexService';
|
||||
import { useState } from 'react';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
|
||||
export const useTPessoaIndexHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../_services/t_censec/TCensecSaveService';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||
|
||||
export const useTPessoaSaveHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { TCensecDeleteService } from '../../_services/t_censec/TCensecDeleteService';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { TCensecDeleteService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||
|
||||
export const useTPessoaDeleteHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { TPessoaIndexService } from '../../_services/t_pessoa/TPessoaIndexService';
|
||||
import { TPessoaIndexService } from '../../services/t_pessoa/TPessoaIndexService';
|
||||
import { useState } from 'react';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { TPessoaRepresentanteIndexData } from '../../_data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { TPessoaRepresentanteIndexData } from '../../data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||
|
||||
export const useTPessoaRepresentanteIndexHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../_services/t_censec/TCensecSaveService';
|
||||
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||
import { TCensecSaveService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||
|
||||
export const useTPessoaSaveHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { TPessoaIndexData } from '../../_data/TPessoa/TPessoaIndexData';
|
||||
import { TPessoaIndexData } from '../../data/TPessoa/TPessoaIndexData';
|
||||
|
||||
async function executeTPessoaIndexService() {
|
||||
const response = TPessoaIndexData();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { TPessoaJuridicaIndexData } from '../../../_data/TPessoa/juridica/TPessoaJuridicaIndexData';
|
||||
import { TPessoaJuridicaIndexData } from '../../../data/TPessoa/juridica/TPessoaJuridicaIndexData';
|
||||
|
||||
async function executeTPessoaJuridicaIndexService() {
|
||||
const response = TPessoaJuridicaIndexData();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { TPessoaRepresentanteIndexData } from '../../_data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||
import { TPessoaRepresentanteIndexData } from '../../data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||
|
||||
async function executeTPessoaRepresentanteIndexService() {
|
||||
const response = TPessoaRepresentanteIndexData();
|
||||
Loading…
Add table
Reference in a new issue