diff --git a/src/app/(account-pages)/account/page.tsx b/src/app/(account-pages)/account/page.tsx index 2519679..297e3d6 100644 --- a/src/app/(account-pages)/account/page.tsx +++ b/src/app/(account-pages)/account/page.tsx @@ -83,8 +83,6 @@ const AccountPage = () => { } ); if (response.status === 200) { - console.log(response); - user.avatar = response.data.avatar; user.email = response.data.email; user.fullname = response.data.fullname; diff --git a/src/app/(account-pages)/passengers-list/PassengerTable.tsx b/src/app/(account-pages)/passengers-list/PassengerTable.tsx index bdaba70..ef7858d 100644 --- a/src/app/(account-pages)/passengers-list/PassengerTable.tsx +++ b/src/app/(account-pages)/passengers-list/PassengerTable.tsx @@ -15,8 +15,6 @@ const [show , setShow] =useState(true) Authorization : `token ${user.token}` } }) - console.log(response); - setShow(false) }catch (error){ diff --git a/src/app/(account-pages)/passengers-list/page.tsx b/src/app/(account-pages)/passengers-list/page.tsx index e604e36..ac68892 100644 --- a/src/app/(account-pages)/passengers-list/page.tsx +++ b/src/app/(account-pages)/passengers-list/page.tsx @@ -20,15 +20,11 @@ useEffect(()=>{ }) .then((response)=>{ setPassenger(response.data.results); - console.log(response); - - - + }).catch((error)=>{ console.error(error); }) - console.log(passengers); } , []) diff --git a/src/app/(client-components)/(Header)/MainNav1.tsx b/src/app/(client-components)/(Header)/MainNav1.tsx index 6116e37..0b9b15e 100644 --- a/src/app/(client-components)/(Header)/MainNav1.tsx +++ b/src/app/(client-components)/(Header)/MainNav1.tsx @@ -20,13 +20,6 @@ const MainNav1: FC = ({ className = "" }) => { const User = JSON.parse(localStorage.getItem("user")) User? setStatus(true) : setStatus(false) - - console.log(status); - - -console.log(User.avatar); - - return (
diff --git a/src/app/(client-components)/(HeroSearchForm)/GuestsInput.tsx b/src/app/(client-components)/(HeroSearchForm)/GuestsInput.tsx index 04f2ad4..bcda547 100644 --- a/src/app/(client-components)/(HeroSearchForm)/GuestsInput.tsx +++ b/src/app/(client-components)/(HeroSearchForm)/GuestsInput.tsx @@ -42,7 +42,6 @@ const GuestsInput: FC = ({ setPassengers(guestAdultsInputValue) } , []) -console.log(passengers); return ( diff --git a/src/app/add-listing/[[...stepIndex]]/page.tsx b/src/app/add-listing/[[...stepIndex]]/page.tsx index 5e5ab3f..f768db2 100644 --- a/src/app/add-listing/[[...stepIndex]]/page.tsx +++ b/src/app/add-listing/[[...stepIndex]]/page.tsx @@ -30,9 +30,6 @@ const CommonLayout: FC = ({ params }) => { setPassengers((prev) => [...prev, newPassenger]); } -console.log(newPassenger); -console.log(passengers); - const index = Number(params.stepIndex) || 1; const nextHref = ( index < 10 ? `/add-listing/${index + 1}` : `/add-listing/${1}` diff --git a/src/app/add-new-passenger/page.tsx b/src/app/add-new-passenger/page.tsx index f1f65bf..75f571d 100644 --- a/src/app/add-new-passenger/page.tsx +++ b/src/app/add-new-passenger/page.tsx @@ -108,7 +108,6 @@ const CommonLayout: FC = () => { } ); - console.log(response.data); router.push("/passengers-list"); } catch (error) { console.error("Error saving passenger:", error); diff --git a/src/app/forgot-password/page.tsx b/src/app/forgot-password/page.tsx index 978c932..e81b59c 100644 --- a/src/app/forgot-password/page.tsx +++ b/src/app/forgot-password/page.tsx @@ -52,12 +52,10 @@ const PageSignUp: FC = ({}) => { if (validateForm(form)) { setForm(form); - console.log('Form is valid, submitting:', form); await axiosInstance .get(`/api/account/verfication/?range_phone=${countryCode}&phone_number=${phoneNumber}`) .then((response) => { setMethod(response.data.verification_method) - console.log(response.data.verification_method); }) .catch((error) => { console.error("Error fetching data:", error); diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 08c2f50..b2ec43b 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -43,12 +43,10 @@ const PageLogin: FC = ({}) => { password, }) .then((response) => { - console.log(response); if (response.status === 201) { localStorage.setItem("user", JSON.stringify(response.data)); setStatus(true) - console.log(response.data); } else { diff --git a/src/app/signup/methodes/page.tsx b/src/app/signup/methodes/page.tsx index 7e1fc79..eb11bf8 100644 --- a/src/app/signup/methodes/page.tsx +++ b/src/app/signup/methodes/page.tsx @@ -35,7 +35,6 @@ function SelectMethods() { setSelectedMethod(e.target.value); } }; - console.log(method); const handleSubmit = async () => { setLoading(true); @@ -56,9 +55,8 @@ function SelectMethods() { }, } ); - console.log(response); response.status === 202 && - (console.log("sucsses"), + ( setLoading(false), router.replace("signup/otp-code")); } catch (error) { diff --git a/src/app/tours/[slug]/page.tsx b/src/app/tours/[slug]/page.tsx index dcc94ca..da05bb0 100644 --- a/src/app/tours/[slug]/page.tsx +++ b/src/app/tours/[slug]/page.tsx @@ -35,7 +35,6 @@ const ListingStayDetailPage: FC = ({}) => { getTourData(id); }, []); - console.log(details); let [isOpenModalAmenities, setIsOpenModalAmenities] = useState(false); @@ -166,7 +165,6 @@ const ListingStayDetailPage: FC = ({}) => { ))}
- {console.log(details)}
@@ -599,7 +597,6 @@ const ListingStayDetailPage: FC = ({}) => { alt="" sizes="400px" /> - {console.log(details)}
{/* OVERLAY */} diff --git a/src/components/CardCategory3.tsx b/src/components/CardCategory3.tsx index 56831dd..baaf66b 100644 --- a/src/components/CardCategory3.tsx +++ b/src/components/CardCategory3.tsx @@ -16,7 +16,6 @@ const CardCategory3: FC = ({ }) => { const { count, name, href = "/", thumbnail } = taxonomy; - console.log(taxonomy.city[0].thumbnail); return ( diff --git a/src/components/SectionCustomTour.tsx b/src/components/SectionCustomTour.tsx index 969eb9a..18ec6d4 100644 --- a/src/components/SectionCustomTour.tsx +++ b/src/components/SectionCustomTour.tsx @@ -9,7 +9,6 @@ export interface SectionCustomTourProps { rightImg?: StaticImageData; type?: "type1" | "type2"; } -console.log("fsafs"); const SectionCustomTour: FC = ({ className = "lg:py-14", diff --git a/src/components/SectionGridFeaturePlaces.tsx b/src/components/SectionGridFeaturePlaces.tsx index 375eb20..ecb194d 100644 --- a/src/components/SectionGridFeaturePlaces.tsx +++ b/src/components/SectionGridFeaturePlaces.tsx @@ -35,14 +35,12 @@ const SectionGridFeaturePlaces: FC = ({ const { countries, tours } = useContext(Context); const [countryTours, setCountryTours] = useState(); - console.log(tours); useEffect(()=>{ handleChange("All") } , [tours , countries]) const handleChange = async (item) => { - console.log(item , countries , tours); if (item ==="All"){ setCountryTours(tours.results); @@ -52,11 +50,8 @@ const SectionGridFeaturePlaces: FC = ({ (tour) => tour.destination_country === selected?.code ); setCountryTours(selectedTours); - console.log(selected); - - console.log(selectedTours);} +} }; - console.log(countries); // const renderCard = (stay: StayDataType) => { // let CardName = StayCard; // switch (cardType) { diff --git a/src/components/SectionSliderNewCategories.tsx b/src/components/SectionSliderNewCategories.tsx index cd5f8af..b87cad1 100644 --- a/src/components/SectionSliderNewCategories.tsx +++ b/src/components/SectionSliderNewCategories.tsx @@ -115,7 +115,6 @@ const SectionSliderNewCategories: FC = ({ const [direction, setDirection] = useState(0); const [numberOfItems, setNumberOfitem] = useState(0); const { countries} = useContext(Context); - console.log(countries) const windowWidth = useWindowSize().width; @@ -148,7 +147,6 @@ const SectionSliderNewCategories: FC = ({ // }); // }, []); - // console.log(tours); function changeItemId(newVal: number) { if (newVal > currentIndex) { diff --git a/src/components/StayCard2.tsx b/src/components/StayCard2.tsx index 2306ea3..aad5474 100644 --- a/src/components/StayCard2.tsx +++ b/src/components/StayCard2.tsx @@ -40,7 +40,6 @@ const StayCard2: FC = ({ } = data; const renderSliderGallery = () => { - // console.log(data); return ( <> @@ -64,7 +63,6 @@ const StayCard2: FC = ({ ); }; -console.log(data); const renderContent = () => { return ( diff --git a/src/components/api/axios.tsx b/src/components/api/axios.tsx index e0faccf..7cd2c3c 100644 --- a/src/components/api/axios.tsx +++ b/src/components/api/axios.tsx @@ -6,22 +6,17 @@ const axiosInstance= axios.create({ axiosInstance.interceptors.request.use( (config) => { - // Log the request headers - console.log('Request Headers:', config); return config; }, (error) => { - // Handle the request error console.error('Request Error:', error); return Promise.reject(error); } ); - // You can also add a response interceptor if needed axiosInstance.interceptors.response.use( (response) => response, (error) => { - // Handle response errors console.error('Response Error:', error); return Promise.reject(error); } diff --git a/src/components/contexts/tourDetails.tsx b/src/components/contexts/tourDetails.tsx index 0917cef..94e228b 100644 --- a/src/components/contexts/tourDetails.tsx +++ b/src/components/contexts/tourDetails.tsx @@ -32,7 +32,6 @@ export const ContextProvider = ({ children }) => { }); }, []); - console.log(tours); const getTourData = async (item) => { await axiosInstance @@ -43,7 +42,6 @@ export const ContextProvider = ({ children }) => { .catch((error) => { console.error("Error fetching data:", error); }); - // console.log(details); // await axiosInstance // .get(`/api/tours/${item}/passengers/`) // .then((response) => { @@ -52,7 +50,6 @@ export const ContextProvider = ({ children }) => { // .catch((error) => { // console.error("Error fetching data:", error); // }); - // console.log(passengers); }; return (