diff --git a/src/Components/Auth/SetNewPasswordPage.tsx b/src/Components/Auth/SetNewPasswordPage.tsx index 529bffa8..20f30445 100644 --- a/src/Components/Auth/SetNewPasswordPage.tsx +++ b/src/Components/Auth/SetNewPasswordPage.tsx @@ -17,6 +17,7 @@ export function SetNewPasswordPage() { const onReset = async () => { const token = window.location.search.split('token=')[1] + // eslint-disable-next-line no-console console.log(token) await toast.promise(passwordReset(token, password), { diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index 88022721..6ad9404e 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -64,6 +64,7 @@ export const SearchControl = () => { const { data } = await axios.get(`https://photon.komoot.io/api/?q=${value}&limit=5`) setGeoResults(data.features) } catch (error) { + // eslint-disable-next-line no-console console.log(error) } } @@ -215,6 +216,7 @@ export const SearchControl = () => { ) .openPopup() .addEventListener('popupclose', (e) => { + // eslint-disable-next-line no-console console.log(e.target.remove()) }) if (geo.properties.extent) @@ -284,6 +286,7 @@ export const SearchControl = () => { ) .openPopup() .addEventListener('popupclose', (e) => { + // eslint-disable-next-line no-console console.log(e.target.remove()) }) map.setView( diff --git a/src/Components/Map/Subcomponents/ItemFormPopup.tsx b/src/Components/Map/Subcomponents/ItemFormPopup.tsx index bb4f841a..09119a0f 100644 --- a/src/Components/Map/Subcomponents/ItemFormPopup.tsx +++ b/src/Components/Map/Subcomponents/ItemFormPopup.tsx @@ -74,6 +74,7 @@ export function ItemFormPopup(props: ItemFormPopupProps) { toast.error(error.toString()) } if (success) { + // eslint-disable-next-line no-console console.log(props.item) updateItem({ ...props.item, ...formItem }) diff --git a/src/Components/Map/UtopiaMapInner.tsx b/src/Components/Map/UtopiaMapInner.tsx index 36966780..deb3fa59 100644 --- a/src/Components/Map/UtopiaMapInner.tsx +++ b/src/Components/Map/UtopiaMapInner.tsx @@ -94,6 +94,7 @@ export function UtopiaMapInner({ useMapEvents({ click: (e) => { resetMetaTags() + // eslint-disable-next-line no-console console.log(e.latlng.lat + ',' + e.latlng.lng) if (selectNewItemPosition) { setMapClicked({ position: e.latlng, setItemFormPopup }) diff --git a/src/Components/Profile/ProfileView.tsx b/src/Components/Profile/ProfileView.tsx index a54ae222..2414075c 100644 --- a/src/Components/Profile/ProfileView.tsx +++ b/src/Components/Profile/ProfileView.tsx @@ -60,11 +60,13 @@ export function ProfileView({ attestationApi }: { attestationApi?: ItemsApi attestationApi .getItems() .then((value) => { + // eslint-disable-next-line no-console console.log(value) setAttestations(value) }) .catch((error) => { + // eslint-disable-next-line no-console console.error('Error fetching items:', error) }) } diff --git a/src/Components/Profile/Subcomponents/ContactInfoView.tsx b/src/Components/Profile/Subcomponents/ContactInfoView.tsx index 2e9a727b..80bc5f93 100644 --- a/src/Components/Profile/Subcomponents/ContactInfoView.tsx +++ b/src/Components/Profile/Subcomponents/ContactInfoView.tsx @@ -16,6 +16,7 @@ export const ContactInfoView = ({ item, heading }: { item: Item; heading: string const items = useItems() useEffect(() => { + // eslint-disable-next-line no-console console.log( 'user:', items.find( diff --git a/src/Components/Profile/Subcomponents/GroupSubheaderForm.tsx b/src/Components/Profile/Subcomponents/GroupSubheaderForm.tsx index 71273a26..cd4084dd 100644 --- a/src/Components/Profile/Subcomponents/GroupSubheaderForm.tsx +++ b/src/Components/Profile/Subcomponents/GroupSubheaderForm.tsx @@ -30,6 +30,7 @@ export const GroupSubheaderForm = ({ useEffect(() => { if (groupTypes && groupStates) { const groupType = groupTypes.find((gt) => gt.groupTypes_id.name === state.group_type) + // eslint-disable-next-line no-console console.log(state.group_type) setState((prevState) => ({ ...prevState, diff --git a/src/Components/Profile/Templates/FlexView.tsx b/src/Components/Profile/Templates/FlexView.tsx index c9f68c18..0fb741e9 100644 --- a/src/Components/Profile/Templates/FlexView.tsx +++ b/src/Components/Profile/Templates/FlexView.tsx @@ -17,6 +17,7 @@ const componentMap = { } export const FlexView = ({ item }: { item: Item }) => { + // eslint-disable-next-line no-console console.log(item) return (
diff --git a/src/Components/Templates/MarketView.tsx b/src/Components/Templates/MarketView.tsx index f21cfecb..6009e683 100644 --- a/src/Components/Templates/MarketView.tsx +++ b/src/Components/Templates/MarketView.tsx @@ -56,6 +56,7 @@ export const MarketView = () => { }) return null }) + // eslint-disable-next-line no-console console.log(offers) // eslint-disable-next-line react-hooks/exhaustive-deps diff --git a/src/Utils/ReverseGeocoder.ts b/src/Utils/ReverseGeocoder.ts index 3879b291..627626cf 100644 --- a/src/Utils/ReverseGeocoder.ts +++ b/src/Utils/ReverseGeocoder.ts @@ -35,6 +35,7 @@ export async function reverseGeocode(lat: number, lon: number): Promise const formattedAddress = `${street} ${houseNumber}, ${city}`.trim() return formattedAddress || '' } catch (error) { + // eslint-disable-next-line no-console console.error('Error:', error) return '' }