delete logs

master
حسین معصومی پور 2024-12-04 01:43:09 +03:30
parent 9cfae46f02
commit 304c0fb2b7
13 changed files with 0 additions and 24 deletions

View File

@ -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;

View File

@ -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 ||

View File

@ -138,8 +138,6 @@ const CheckoutData = () => {
setPermissionGoPay(false);
}, []);
console.log("checkOutData", checkOutData);
return (
<>
<div className=" pb-20">

View File

@ -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} />

View File

@ -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

View File

@ -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
}
};

View File

@ -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 />

View File

@ -98,8 +98,6 @@ const Navbar = ({ theme }) => {
setSearchValue(event.target.value);
};
console.log(dataNav);
return (
<>
{isDesktop && (

View File

@ -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",

View File

@ -21,8 +21,6 @@ async function getData(sParams) {
const post = await res.json();
//
console.log("post", post);
return post;
}

View File

@ -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

View File

@ -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);

View File

@ -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