delete logs
parent
9cfae46f02
commit
304c0fb2b7
|
@ -12,7 +12,6 @@ import AppContext from "@ctx/AppContext";
|
||||||
import CardNormal from "@comp/Cards/CardNormal/page";
|
import CardNormal from "@comp/Cards/CardNormal/page";
|
||||||
|
|
||||||
const BrandData = ({ params, data }) => {
|
const BrandData = ({ params, data }) => {
|
||||||
console.log("data brand", data);
|
|
||||||
const CTX = useContext(AppContext);
|
const CTX = useContext(AppContext);
|
||||||
const hairCosmeticData = CTX.state.hairCosmeticData;
|
const hairCosmeticData = CTX.state.hairCosmeticData;
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,6 @@ export default function CategoriesData({ params, products }) {
|
||||||
const CTX = useContext(AppContext);
|
const CTX = useContext(AppContext);
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
|
|
||||||
console.log("products :products", products);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
Number(searchParams.get("page")) === 0 ||
|
Number(searchParams.get("page")) === 0 ||
|
||||||
|
|
|
@ -138,8 +138,6 @@ const CheckoutData = () => {
|
||||||
setPermissionGoPay(false);
|
setPermissionGoPay(false);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
console.log("checkOutData", checkOutData);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className=" pb-20">
|
<div className=" pb-20">
|
||||||
|
|
|
@ -17,8 +17,6 @@ import BottomSheetComment from "plugins/bottomSheet/BottomSheetComment";
|
||||||
import AppContext from "@ctx/AppContext";
|
import AppContext from "@ctx/AppContext";
|
||||||
|
|
||||||
const ProductData = ({ params, data }) => {
|
const ProductData = ({ params, data }) => {
|
||||||
console.log("data", data);
|
|
||||||
|
|
||||||
const CTX = useContext(AppContext);
|
const CTX = useContext(AppContext);
|
||||||
const [product, setProduct] = useState([]);
|
const [product, setProduct] = useState([]);
|
||||||
const [review, setReview] = useState([]);
|
const [review, setReview] = useState([]);
|
||||||
|
@ -60,7 +58,6 @@ const ProductData = ({ params, data }) => {
|
||||||
setReview(data);
|
setReview(data);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching reviews:", error);
|
|
||||||
setHasMore(false); // Stop further fetches on error
|
setHasMore(false); // Stop further fetches on error
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -149,8 +146,6 @@ const ProductData = ({ params, data }) => {
|
||||||
displaySpecifications(product?.specifications);
|
displaySpecifications(product?.specifications);
|
||||||
}, [product]);
|
}, [product]);
|
||||||
|
|
||||||
console.log("review", data);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navbar theme={1} />
|
<Navbar theme={1} />
|
||||||
|
|
|
@ -204,7 +204,6 @@ const RootData = ({ children }) => {
|
||||||
`${process.env.NEXT_PUBLIC_API_URL}/product?${cleanQueryString}`
|
`${process.env.NEXT_PUBLIC_API_URL}/product?${cleanQueryString}`
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("rsssssssssssssssssssssssssssssssssssssssss", res);
|
|
||||||
// Check if the response status is 404
|
// Check if the response status is 404
|
||||||
if (res.status === 404) {
|
if (res.status === 404) {
|
||||||
// Navigate to the custom 404 page
|
// Navigate to the custom 404 page
|
||||||
|
|
|
@ -47,7 +47,6 @@ const BlogData = ({ params, data }) => {
|
||||||
setReview(data);
|
setReview(data);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching reviews:", error);
|
|
||||||
setHasMore(false); // Stop further fetches on error
|
setHasMore(false); // Stop further fetches on error
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,6 @@ import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
const BlogsData = ({ dataCaetgories, data }) => {
|
const BlogsData = ({ dataCaetgories, data }) => {
|
||||||
console.log("data", data);
|
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -29,8 +28,6 @@ const BlogsData = ({ dataCaetgories, data }) => {
|
||||||
|
|
||||||
const lates4Blog = data.blogs?.slice(0, 4);
|
const lates4Blog = data.blogs?.slice(0, 4);
|
||||||
|
|
||||||
console.log(lates4Blog);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="overflow-hidden">
|
<div className="overflow-hidden">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
|
|
@ -98,8 +98,6 @@ const Navbar = ({ theme }) => {
|
||||||
setSearchValue(event.target.value);
|
setSearchValue(event.target.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(dataNav);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isDesktop && (
|
{isDesktop && (
|
||||||
|
|
|
@ -12,8 +12,6 @@ async function getData(id) {
|
||||||
const page = async ({ params }) => {
|
const page = async ({ params }) => {
|
||||||
const data = await getData(params.id[0]);
|
const data = await getData(params.id[0]);
|
||||||
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
// const structuredData = {
|
// const structuredData = {
|
||||||
// "@context": "https://schema.org",
|
// "@context": "https://schema.org",
|
||||||
// "@type": "BlogPosting",
|
// "@type": "BlogPosting",
|
||||||
|
|
|
@ -21,8 +21,6 @@ async function getData(sParams) {
|
||||||
const post = await res.json();
|
const post = await res.json();
|
||||||
//
|
//
|
||||||
|
|
||||||
console.log("post", post);
|
|
||||||
|
|
||||||
return post;
|
return post;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ async function getData(id) {
|
||||||
cache: "no-cache",
|
cache: "no-cache",
|
||||||
});
|
});
|
||||||
const post = await res.json();
|
const post = await res.json();
|
||||||
console.log("hi", post);
|
|
||||||
// console.log("object11", post);
|
// console.log("object11", post);
|
||||||
|
|
||||||
// // Check if the response status is 404
|
// // Check if the response status is 404
|
||||||
|
|
|
@ -89,7 +89,6 @@ const fetchProducts = async (categoryId, searchParams = {}) => {
|
||||||
if (!res.ok) return [];
|
if (!res.ok) return [];
|
||||||
const products = await res.json();
|
const products = await res.json();
|
||||||
|
|
||||||
console.log("Fetched products:", products);
|
|
||||||
return products;
|
return products;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching products:", error);
|
console.error("Error fetching products:", error);
|
||||||
|
|
|
@ -6,7 +6,6 @@ async function getData(id) {
|
||||||
cache: "no-cache",
|
cache: "no-cache",
|
||||||
});
|
});
|
||||||
const post = await res.json();
|
const post = await res.json();
|
||||||
console.log("hi", post);
|
|
||||||
// console.log("object11", post);
|
// console.log("object11", post);
|
||||||
|
|
||||||
// // Check if the response status is 404
|
// // Check if the response status is 404
|
||||||
|
|
Loading…
Reference in New Issue