From bfa3be924a58dfcf40fbe482cc6b951e8deff390 Mon Sep 17 00:00:00 2001 From: Andres Alvarez Date: Wed, 14 Feb 2024 08:22:59 -0500 Subject: [PATCH] correcciones --- src/app/configs/navigationConfig.ts | 8 - src/app/configs/routesConfig.tsx | 14 +- src/app/main/404/Error404Page.tsx | 6 +- .../dataClient/DataClientRender.tsx | 258 +++++++++++------- .../invoice/listInvoice/ListInvoiceRender.tsx | 2 +- 5 files changed, 169 insertions(+), 119 deletions(-) diff --git a/src/app/configs/navigationConfig.ts b/src/app/configs/navigationConfig.ts index 807e9ab..cf18332 100644 --- a/src/app/configs/navigationConfig.ts +++ b/src/app/configs/navigationConfig.ts @@ -14,14 +14,6 @@ i18next.addResourceBundle('es', 'navigation', es); * The navigationConfig object is an array of navigation items for the Fuse application. */ const navigationConfig: FuseNavItemType[] = [ - { - id: 'example-component', - title: 'Example', - translate: 'EXAMPLE', - type: 'item', - icon: 'heroicons-outline:star', - url: 'example' - }, { id: 'dashboard-component', title: 'Dashboard', diff --git a/src/app/configs/routesConfig.tsx b/src/app/configs/routesConfig.tsx index fd82ac4..661e591 100644 --- a/src/app/configs/routesConfig.tsx +++ b/src/app/configs/routesConfig.tsx @@ -7,12 +7,18 @@ import SignInConfig from '../main/sign-in/SignInConfig'; import SignUpConfig from '../main/sign-up/SignUpConfig'; import SignOutConfig from '../main/sign-out/SignOutConfig'; import Error404Page from '../main/404/Error404Page'; -import ExampleConfig from '../main/example/ExampleConfig'; import ProjectDashboardAppConfig from '../main/dashboard/project/ProjectDashboardAppConfig'; -import ProductoConfigs from '../main/producto/ProductoConfig' +import ProductoConfigs from '../main/producto/ProductoConfig'; import InvoiceConfigs from '../main/invoice/InvoiceConfig'; -const routeConfigs: FuseRouteConfigsType = [ExampleConfig, SignOutConfig, SignInConfig, SignUpConfig, ProjectDashboardAppConfig, ...ProductoConfigs, ...InvoiceConfigs]; +const routeConfigs: FuseRouteConfigsType = [ + SignOutConfig, + SignInConfig, + SignUpConfig, + ProjectDashboardAppConfig, + ...ProductoConfigs, + ...InvoiceConfigs +]; /** * The routes of the application. @@ -21,7 +27,7 @@ const routes: FuseRoutesType = [ ...FuseUtils.generateRoutesFromConfigs(routeConfigs, settingsConfig.defaultAuth), { path: '/', - element: , + element: , auth: settingsConfig.defaultAuth }, { diff --git a/src/app/main/404/Error404Page.tsx b/src/app/main/404/Error404Page.tsx index 2ae1ca5..2b8e066 100644 --- a/src/app/main/404/Error404Page.tsx +++ b/src/app/main/404/Error404Page.tsx @@ -16,8 +16,8 @@ function Error404Page() { > - The page you requested could not be found. + La página a la que se quiere acceder no existe. void; - selectClient: Client; + client: Client[]; + handleSelectClient: (value: Client) => void; + selectClient: Client; } function DataClientRender({ client, handleSelectClient, selectClient }: Props) { - const [openDialog, setOpenDialog] = useState(false); - return ( - - - - - - Datos cliente - - - - - - - - - - option.razonSocial} - noOptionsText="No se encontro un resultado" - size="small" - value={selectClient} - onChange={(event, newValue) => { - handleSelectClient(newValue); - }} - renderInput={(params) => ( - - )} - /> - - - - - {selectClient ? ( - <> - - Razón Social: {selectClient.razonSocial} - - - Nombre Comercial: {selectClient.nombreComercial} - - - Ruc: {selectClient.identificacion} - + const [openDialog, setOpenDialog] = useState(false); + return ( + + + + + + Datos cliente + + + + + + + + + + option.razonSocial} + noOptionsText="No se encontro un resultado" + size="small" + value={selectClient} + onChange={(event, newValue) => { + handleSelectClient(newValue); + }} + renderInput={(params) => ( + + )} + /> + + + + + {selectClient ? ( + <> + + Razón Social: {selectClient.razonSocial} + + + Nombre Comercial: {selectClient.nombreComercial} + + + Ruc: {selectClient.identificacion} + - - Dirección: {selectClient.direccion} - - - Teléfono: {selectClient.telefono} - - - Correo: {selectClient.correo} - - - ) : ( - - - Seleccione o agrege el cliente - - - )} - - - ); + + Dirección: {selectClient.direccion} + + + Teléfono: {selectClient.telefono} + + + Correo: {selectClient.correo} + + + ) : ( + + + Seleccione o agrege el cliente + + + )} + + + ); } export default DataClientRender; diff --git a/src/app/main/invoice/listInvoice/ListInvoiceRender.tsx b/src/app/main/invoice/listInvoice/ListInvoiceRender.tsx index 3a48051..5cd3b06 100644 --- a/src/app/main/invoice/listInvoice/ListInvoiceRender.tsx +++ b/src/app/main/invoice/listInvoice/ListInvoiceRender.tsx @@ -100,7 +100,7 @@ function ListInvoiceRender() { } content={ - +