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