mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
lint fixes
This commit is contained in:
parent
5dd4c67637
commit
5a7bdfe7f7
@ -17,6 +17,7 @@ export function SetNewPasswordPage() {
|
|||||||
|
|
||||||
const onReset = async () => {
|
const onReset = async () => {
|
||||||
const token = window.location.search.split('token=')[1]
|
const token = window.location.search.split('token=')[1]
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(token)
|
console.log(token)
|
||||||
|
|
||||||
await toast.promise(passwordReset(token, password), {
|
await toast.promise(passwordReset(token, password), {
|
||||||
|
|||||||
@ -64,6 +64,7 @@ export const SearchControl = () => {
|
|||||||
const { data } = await axios.get(`https://photon.komoot.io/api/?q=${value}&limit=5`)
|
const { data } = await axios.get(`https://photon.komoot.io/api/?q=${value}&limit=5`)
|
||||||
setGeoResults(data.features)
|
setGeoResults(data.features)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -215,6 +216,7 @@ export const SearchControl = () => {
|
|||||||
)
|
)
|
||||||
.openPopup()
|
.openPopup()
|
||||||
.addEventListener('popupclose', (e) => {
|
.addEventListener('popupclose', (e) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(e.target.remove())
|
console.log(e.target.remove())
|
||||||
})
|
})
|
||||||
if (geo.properties.extent)
|
if (geo.properties.extent)
|
||||||
@ -284,6 +286,7 @@ export const SearchControl = () => {
|
|||||||
)
|
)
|
||||||
.openPopup()
|
.openPopup()
|
||||||
.addEventListener('popupclose', (e) => {
|
.addEventListener('popupclose', (e) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(e.target.remove())
|
console.log(e.target.remove())
|
||||||
})
|
})
|
||||||
map.setView(
|
map.setView(
|
||||||
|
|||||||
@ -74,6 +74,7 @@ export function ItemFormPopup(props: ItemFormPopupProps) {
|
|||||||
toast.error(error.toString())
|
toast.error(error.toString())
|
||||||
}
|
}
|
||||||
if (success) {
|
if (success) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(props.item)
|
console.log(props.item)
|
||||||
|
|
||||||
updateItem({ ...props.item, ...formItem })
|
updateItem({ ...props.item, ...formItem })
|
||||||
|
|||||||
@ -94,6 +94,7 @@ export function UtopiaMapInner({
|
|||||||
useMapEvents({
|
useMapEvents({
|
||||||
click: (e) => {
|
click: (e) => {
|
||||||
resetMetaTags()
|
resetMetaTags()
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(e.latlng.lat + ',' + e.latlng.lng)
|
console.log(e.latlng.lat + ',' + e.latlng.lng)
|
||||||
if (selectNewItemPosition) {
|
if (selectNewItemPosition) {
|
||||||
setMapClicked({ position: e.latlng, setItemFormPopup })
|
setMapClicked({ position: e.latlng, setItemFormPopup })
|
||||||
|
|||||||
@ -60,11 +60,13 @@ export function ProfileView({ attestationApi }: { attestationApi?: ItemsApi<any>
|
|||||||
attestationApi
|
attestationApi
|
||||||
.getItems()
|
.getItems()
|
||||||
.then((value) => {
|
.then((value) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(value)
|
console.log(value)
|
||||||
|
|
||||||
setAttestations(value)
|
setAttestations(value)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error('Error fetching items:', error)
|
console.error('Error fetching items:', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,7 @@ export const ContactInfoView = ({ item, heading }: { item: Item; heading: string
|
|||||||
const items = useItems()
|
const items = useItems()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(
|
console.log(
|
||||||
'user:',
|
'user:',
|
||||||
items.find(
|
items.find(
|
||||||
|
|||||||
@ -30,6 +30,7 @@ export const GroupSubheaderForm = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (groupTypes && groupStates) {
|
if (groupTypes && groupStates) {
|
||||||
const groupType = groupTypes.find((gt) => gt.groupTypes_id.name === state.group_type)
|
const groupType = groupTypes.find((gt) => gt.groupTypes_id.name === state.group_type)
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(state.group_type)
|
console.log(state.group_type)
|
||||||
setState((prevState) => ({
|
setState((prevState) => ({
|
||||||
...prevState,
|
...prevState,
|
||||||
|
|||||||
@ -17,6 +17,7 @@ const componentMap = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const FlexView = ({ item }: { item: Item }) => {
|
export const FlexView = ({ item }: { item: Item }) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(item)
|
console.log(item)
|
||||||
return (
|
return (
|
||||||
<div className='tw-h-full tw-overflow-y-auto fade'>
|
<div className='tw-h-full tw-overflow-y-auto fade'>
|
||||||
|
|||||||
@ -56,6 +56,7 @@ export const MarketView = () => {
|
|||||||
})
|
})
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log(offers)
|
console.log(offers)
|
||||||
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|||||||
@ -35,6 +35,7 @@ export async function reverseGeocode(lat: number, lon: number): Promise<string>
|
|||||||
const formattedAddress = `${street} ${houseNumber}, ${city}`.trim()
|
const formattedAddress = `${street} ${houseNumber}, ${city}`.trim()
|
||||||
return formattedAddress || ''
|
return formattedAddress || ''
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.error('Error:', error)
|
console.error('Error:', error)
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user