From 3bcc3dadff1513b1d0f039a75accdbbc12fe6463 Mon Sep 17 00:00:00 2001 From: HamsterStudent Date: Mon, 6 Nov 2023 21:31:50 +0900 Subject: [PATCH] :pencil2: Fix : bug fix --- Frontend/src/pages/Map/components/ListMenu.tsx | 3 ++- Frontend/src/recoil/atom.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Frontend/src/pages/Map/components/ListMenu.tsx b/Frontend/src/pages/Map/components/ListMenu.tsx index 6d03d7a..860a021 100644 --- a/Frontend/src/pages/Map/components/ListMenu.tsx +++ b/Frontend/src/pages/Map/components/ListMenu.tsx @@ -5,6 +5,7 @@ import { categoryNameAtom, dataArrAtom, listNameAtom, + mapListShowAtom, } from "../../../recoil/atom"; import CopyClipBoard from "../../../components/CopyClipBoard"; import { IData } from "../Map"; @@ -177,7 +178,7 @@ const ListMenu = ({ clickEvent, dataArr, wholeData }: IListMenu) => { const [showMenu, setShowMenu] = useState(false); const [categoryName, setCategoryName] = useRecoilState(categoryNameAtom); const setListName = useSetRecoilState(listNameAtom); - const [tap, setTap] = useState(false); + const [tap, setTap] = useRecoilState(mapListShowAtom); const menuList = [ "전체", diff --git a/Frontend/src/recoil/atom.ts b/Frontend/src/recoil/atom.ts index 9a5fc4e..e7593d3 100644 --- a/Frontend/src/recoil/atom.ts +++ b/Frontend/src/recoil/atom.ts @@ -124,3 +124,8 @@ export const curLocationAtom = atom({ key: `curLocation`, default: { latitude: 0, longitude: 0 }, }); + +export const mapListShowAtom = atom({ + key: `mapListShow`, + default: false, +});