@@ -65,7 +64,7 @@ const GalleryBox = ({ file }) => {
file && file[0].fileLocation
}`}
onCloseRequest={() => CTX.setIsOpenLightBox(false)}
- onImageLoadError={(e) => console.log(e)}
+ // onImageLoadError={(e) =>
imageLoadErrorMessage={"باز نمیشه ؟!!!"}
/>
)}
diff --git a/plugins/RangeSlider/page.jsx b/plugins/RangeSlider/page.jsx
index 3b52dd7..48182a8 100644
--- a/plugins/RangeSlider/page.jsx
+++ b/plugins/RangeSlider/page.jsx
@@ -11,7 +11,6 @@ const RangeSlider = ({ min, max, onChange, values }) => {
// left: 0,
};
- console.log("slider,values", values, min, max);
const trackStyle = [{ backgroundColor: "#2189A8", height: 8 }];
const railStyle = { backgroundColor: "#e6e6e6", height: 8 };
diff --git a/plugins/bottomSheet/BottomSheetSeeOrder.jsx b/plugins/bottomSheet/BottomSheetSeeOrder.jsx
index 98dc0df..6bde0a3 100644
--- a/plugins/bottomSheet/BottomSheetSeeOrder.jsx
+++ b/plugins/bottomSheet/BottomSheetSeeOrder.jsx
@@ -12,7 +12,6 @@ import { toast } from "react-toastify";
import logo from "@img/logo.png";
const BottomSheetSeeOrder = ({ id }) => {
- console.log("id", id);
const CTX = useContext(AppContext);
const [bag, setBag] = useState([]);
diff --git a/src/app/blogs/page.jsx b/src/app/blogs/page.jsx
index 931ca91..54ded16 100644
--- a/src/app/blogs/page.jsx
+++ b/src/app/blogs/page.jsx
@@ -1,17 +1,17 @@
import BlogsData from "@comp/Blog/BlogsData/page";
import React from "react";
-async function getData(searchParams) {
- // console.log("page , check", params.page);
+async function getData(sParams) {
+ //
const res = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/blog?` +
- new URLSearchParams({ ...searchParams })
+ new URLSearchParams({ ...sParams })
// ?page=${params.page ?? 0}
// { cache: "no-cache" }
);
const post = await res.json();
- // console.log("dddddddd ", post);
+ //
return post;
}
@@ -21,14 +21,14 @@ async function getCaetgories() {
const post = await res.json();
- // console.log("aaaaaaaaaaaaaaaaaaaa", post);
+ //
return post;
}
const page = async ({ searchParams }) => {
const data = await getData(searchParams);
const dataCaetgories = await getCaetgories();
- // console.log("-------------------------------- ", dataCaetgories);
+ //
return
;
};
diff --git a/src/app/categories/[...id]/page.jsx b/src/app/categories/[...id]/page.jsx
index 3db46e9..ccccfd1 100644
--- a/src/app/categories/[...id]/page.jsx
+++ b/src/app/categories/[...id]/page.jsx
@@ -48,8 +48,6 @@ const fetchProducts = async (categoryId, searchParams) => {
...params,
};
-
-
const brandIds = brandIdsString?.split(",") ?? [];
const brandIdsQuery =
brandIds?.length > 0 ? `&brandIds=${brandIds?.join("&brandIds=")}` : "";
@@ -62,7 +60,7 @@ const fetchProducts = async (categoryId, searchParams) => {
);
if (!res.ok) return [];
const products = await res.json();
- console.log("ppppp", products);
+
return products;
} catch (error) {
return [];
@@ -71,7 +69,7 @@ const fetchProducts = async (categoryId, searchParams) => {
const page = async ({ params, searchParams }) => {
const products = await fetchProducts(params?.["id"]?.[0], searchParams);
- console.log("filters,page", products);
+
return (
diff --git a/src/app/layout.jsx b/src/app/layout.jsx
index 28f6dab..3f7f04e 100644
--- a/src/app/layout.jsx
+++ b/src/app/layout.jsx
@@ -60,8 +60,8 @@ export const metadata = {
export default function RootLayout({ children }) {
// if (process.env.NEXT_PUBLIC_IS_DEV === "false") {
- // console.log(process.env.NEXT_PUBLIC_IS_DEV === "false" && "PROD");
- // console.log = () => {};
+ //
+ //
// }
return (
diff --git a/src/app/login/page.jsx b/src/app/login/page.jsx
index 598f1ad..0679a24 100644
--- a/src/app/login/page.jsx
+++ b/src/app/login/page.jsx
@@ -53,8 +53,6 @@ const Login = () => {
}
);
- console.log(data);
-
localStorage.setItem("token", "Bearer " + data.access_token);
if (data.user.signUpStatus == 1) {
diff --git a/src/app/product/[slug]/page.jsx b/src/app/product/[slug]/page.jsx
index 35fd66c..382baa5 100644
--- a/src/app/product/[slug]/page.jsx
+++ b/src/app/product/[slug]/page.jsx
@@ -1,7 +1,6 @@
import { permanentRedirect } from "next/navigation";
export default async function Page({ params: { slug } }) {
- console.log("slug", slug);
// slug -> id
permanentRedirect(`/products/${slug}`, "replace");
}
diff --git a/src/app/products/[...id]/page.jsx b/src/app/products/[...id]/page.jsx
index 7de6e37..374c83f 100644
--- a/src/app/products/[...id]/page.jsx
+++ b/src/app/products/[...id]/page.jsx
@@ -14,7 +14,7 @@ export async function generateMetadata({ params }) {
data?.product?.files && data?.product?.files[0]?.fileLocation,
process.env.STORAGE_URL
);
- console.log("dddddd", imageUrl);
+
const metadataUrl = new URL(
`products/${params.id[0]}/${decodedName}`,
process.env.NEXT_PUBLIC_APP_URL
diff --git a/src/app/profile/address/page.jsx b/src/app/profile/address/page.jsx
index 75bddfa..3c4ec4e 100644
--- a/src/app/profile/address/page.jsx
+++ b/src/app/profile/address/page.jsx
@@ -10,8 +10,6 @@ const Page = () => {
const CTX = useContext(AppContext);
const addressData = CTX.state.addressData;
- console.log(addressData);
-
useEffect(() => {
if (addressData.length <= 0) {
CTX.fetchAddressUser();
diff --git a/src/app/profile/orders/page.jsx b/src/app/profile/orders/page.jsx
index e6edace..98f0ed8 100644
--- a/src/app/profile/orders/page.jsx
+++ b/src/app/profile/orders/page.jsx
@@ -17,8 +17,6 @@ const Page = () => {
const [bag, setBag] = useState([]);
const getStatusDescription = (status) => {
- console.log(status);
-
switch (status) {
case 0:
return "سبد خرید";
diff --git a/src/app/profile/saleCooperationSystem/page.jsx b/src/app/profile/saleCooperationSystem/page.jsx
index 5bd5466..375b08d 100644
--- a/src/app/profile/saleCooperationSystem/page.jsx
+++ b/src/app/profile/saleCooperationSystem/page.jsx
@@ -65,7 +65,6 @@ const Page = () => {
// Convert Persian date to timestamp
const timestamp = moment(persianDate, "jYYYY/jM/jD").unix();
setBirthDate(timestamp);
- console.log(timestamp);
};
const sendInfoUserCooperationSystem = async () => {
@@ -110,7 +109,6 @@ const Page = () => {
};
useEffect(() => {
- console.log("profile.isMarketer", profile);
if (profile.isMarketer) {
CTX.fetchCooperationSystemProfile();
setStepsaleCooperationSystem(2);
diff --git a/src/app/purchase-callback/page.jsx b/src/app/purchase-callback/page.jsx
index efd8656..2060277 100644
--- a/src/app/purchase-callback/page.jsx
+++ b/src/app/purchase-callback/page.jsx
@@ -8,8 +8,6 @@ const Page = () => {
const paymentStatus = params.get("paymentStatus");
const factorNumber = params.get("factorNumber");
- console.log("paymentStatus", paymentStatus);
-
return (
<>
{paymentStatus === "true" ? (