From ee9563cbb172247e34f1475e0305f674b59f3b67 Mon Sep 17 00:00:00 2001 From: Steven Zhou Date: Sun, 3 Sep 2023 22:08:39 -0700 Subject: [PATCH] fixed eslint --- src/components/Home/Home.jsx | 1 - src/components/Map/Map.jsx | 2 +- src/components/ResultCard/ResultCard.jsx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index ddeb496..81c6b45 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -35,7 +35,6 @@ import { Alert, AlertIcon, AlertTitle, - AlertDescription, } from "@chakra-ui/react"; import { SettingsIcon, ChevronDownIcon, StarIcon } from "@chakra-ui/icons"; import logo from "../../assets/images/small_logo.png"; diff --git a/src/components/Map/Map.jsx b/src/components/Map/Map.jsx index 34c9328..5f8b61f 100644 --- a/src/components/Map/Map.jsx +++ b/src/components/Map/Map.jsx @@ -215,7 +215,7 @@ export default function Map({ } const NewItemMarker = () => { - const map = useMapEvents({ + useMapEvents({ click(event) { const { lat, lng } = event.latlng; setPosition([lat, lng]); diff --git a/src/components/ResultCard/ResultCard.jsx b/src/components/ResultCard/ResultCard.jsx index 2ea37c4..c80de24 100644 --- a/src/components/ResultCard/ResultCard.jsx +++ b/src/components/ResultCard/ResultCard.jsx @@ -79,12 +79,12 @@ export default function ResultCard({ props, setData, onResultsBarClose }) { - {isOpen || id && ( + {(isOpen || id) && ( )}