diff --git a/client/package.json b/client/package.json index a15715e..404fddf 100644 --- a/client/package.json +++ b/client/package.json @@ -49,6 +49,7 @@ "class-variance-authority": "^0.7.0", "cmdk": "^1.0.0", "date-fns": "^3.6.0", + "embla-carousel-react": "^8.2.0", "i18next": "^23.12.2", "i18next-browser-languagedetector": "^8.0.0", "joi": "^17.13.1", diff --git a/client/src/Routes.tsx b/client/src/Routes.tsx index 3fee279..3f8a102 100644 --- a/client/src/Routes.tsx +++ b/client/src/Routes.tsx @@ -77,13 +77,7 @@ export const Routes = () => { }, { path: "/quotes", - element: ( - - - - - - ), + element: , children: [ { index: true, diff --git a/client/src/app/ErrorPage.tsx b/client/src/app/ErrorPage.tsx index ac753a3..06ef747 100644 --- a/client/src/app/ErrorPage.tsx +++ b/client/src/app/ErrorPage.tsx @@ -1,31 +1,6 @@ import { Button } from "@/ui"; -import { useLocation, useNavigate } from "react-router-dom"; -// import Button - -/*const isDev = process.env.REACT_APP_NODE_ENV === "development"; -const hostname = `${ - isDev ? process.env.REACT_APP_DEV_API_URL : process.env.REACT_APP_PROD_API_URL -}`;*/ - -type ErrorPageProps = { - error?: string; -}; -export const ErrorPage = (props: ErrorPageProps) => { - const navigate = useNavigate(); - const location = useLocation(); - - const navMsg = location.state?.error; - const msg = navMsg ? ( -

{navMsg}

- ) : props.error ? ( -

{props.error}

- ) : ( -

- The targeted page "{location.pathname}" was not found, please confirm the spelling and - try again. -

- ); +export const ErrorPage = () => { return (
@@ -37,37 +12,11 @@ export const ErrorPage = (props: ErrorPageProps) => { The page you're looking for doesn't exist or has been moved.

-
); - - return ( -
- {msg} - - - - - -
- ); }; diff --git a/client/src/app/catalog/components/useCatalogTableColumns.tsx b/client/src/app/catalog/components/useCatalogTableColumns.tsx index 4c70c6c..4f0cca5 100644 --- a/client/src/app/catalog/components/useCatalogTableColumns.tsx +++ b/client/src/app/catalog/components/useCatalogTableColumns.tsx @@ -6,7 +6,7 @@ import { Badge } from "@/ui"; import { useMemo } from "react"; export const useCatalogTableColumns = ( - actions: DataTablaRowActionFunction + actions: DataTablaRowActionFunction ): ColumnDef[] => { const customerColumns: ColumnDef[] = useMemo( () => [ @@ -66,8 +66,8 @@ export const useCatalogTableColumns = ( { id: "actions", header: "Acciones", - cell: ({ row }) => { - return ; + cell: (context) => { + return ; }, }, ], diff --git a/client/src/app/dashboard/index.tsx b/client/src/app/dashboard/index.tsx index 0eebc10..e71a697 100644 --- a/client/src/app/dashboard/index.tsx +++ b/client/src/app/dashboard/index.tsx @@ -2,10 +2,8 @@ import { Layout, LayoutContent, LayoutHeader } from "@/components"; import { useGetProfile } from "@/lib/hooks"; import { Skeleton } from "@/ui"; import { t } from "i18next"; -import { useNavigate } from "react-router-dom"; export const DashboardPage = () => { - const navigate = useNavigate(); const { data: userIdentity, status } = useGetProfile(); return ( diff --git a/client/src/app/dealers/components/useCatalogTableColumns.tsx b/client/src/app/dealers/components/useCatalogTableColumns.tsx index d6f9f4f..5626742 100644 --- a/client/src/app/dealers/components/useCatalogTableColumns.tsx +++ b/client/src/app/dealers/components/useCatalogTableColumns.tsx @@ -66,8 +66,8 @@ export const useCustomerInvoiceDataTableColumns = ( { id: "actions", header: "Acciones", - cell: ({ row }) => { - return ; + cell: (context) => { + return ; }, }, ], diff --git a/client/src/app/index.ts b/client/src/app/index.ts index 3f54d3e..8046f1a 100644 --- a/client/src/app/index.ts +++ b/client/src/app/index.ts @@ -1,8 +1,8 @@ -export * from "./ErrorPage"; -export * from "./StartPage"; export * from "./auth"; export * from "./catalog"; export * from "./dashboard"; export * from "./dealers"; +export * from "./ErrorPage"; export * from "./quotes"; export * from "./settings"; +export * from "./StartPage"; diff --git a/client/src/app/quotes/components/AppendCatalogArticleRowButton.tsx b/client/src/app/quotes/components/AppendCatalogArticleRowButton.tsx index 3953ec8..72cf751 100644 --- a/client/src/app/quotes/components/AppendCatalogArticleRowButton.tsx +++ b/client/src/app/quotes/components/AppendCatalogArticleRowButton.tsx @@ -11,7 +11,7 @@ export interface AppendCatalogArticleRowButtonProps extends ButtonProps { export const AppendCatalogArticleRowButton = forwardRef( ( { label = t("common.append_article"), className, ...props }: AppendCatalogArticleRowButtonProps, - ref + _ref ): JSX.Element => (