diff --git a/DockerFile b/DockerFile
index c31644e..f1afc53 100644
--- a/DockerFile
+++ b/DockerFile
@@ -1,11 +1,11 @@
-FROM node:20.16.0 AS builder
+FROM node:22.19.0 AS builder
WORKDIR /app
# RUN apk add --no-cache libc6-compat
COPY package*.json ./
-RUN npm install
+RUN npm i
COPY . .
@@ -14,7 +14,7 @@ RUN npm run build
#---
-FROM node:20.16.0 AS runner
+FROM node:22.19.0 AS runner
WORKDIR /app
diff --git a/src/app/customers/edit/[id]/page.tsx b/src/app/customers/edit/[id]/page.tsx
index e2d4ca7..ac7396d 100644
--- a/src/app/customers/edit/[id]/page.tsx
+++ b/src/app/customers/edit/[id]/page.tsx
@@ -1,7 +1,30 @@
-import { ShadowBox } from "@/src/components";
+"use client";
-const EditCustomer = () => {
- return Edit customer;
+import { use } from "react";
+import {
+ useCustomersInfiniteQuery,
+ useGetCustomersDetails,
+} from "../../../../hooks/queries/useCustomerQueries";
+import Breadcrumb from "@/components/Breadcrumbs/Breadcrumb";
+import CreateCustomer from "@/components/forms/customers/CreateCustomer";
+import Loading from "@/app/loading";
+
+const EditCustomer = ({ params }: { params: Promise<{ id: string }> }) => {
+ const { id } = use(params);
+ const { isLoading, data, isError } = useGetCustomersDetails(id);
+ const breadcrumbItems = [
+ { name: "Dashboard", href: "/" },
+ { name: "Customers", href: "/customers" },
+ { name: "Edit Customer", href: `/customers/edit/${id}` },
+ ];
+ if (isLoading) return ;
+ if (isError) return
Error
;
+ return (
+ <>
+
+
+ >
+ );
};
export default EditCustomer;
diff --git a/src/app/forms/form-layout/_components/contact-form.tsx b/src/app/forms/form-layout/_components/contact-form.tsx
index a6fc7bc..710eeb8 100644
--- a/src/app/forms/form-layout/_components/contact-form.tsx
+++ b/src/app/forms/form-layout/_components/contact-form.tsx
@@ -8,7 +8,7 @@ export function ContactForm() {