Skip to content

Commit

Permalink
✏️ Fix : bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HamsterStudent committed Nov 6, 2023
1 parent 6f7158c commit 3bcc3da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Frontend/src/pages/Map/components/ListMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
categoryNameAtom,
dataArrAtom,
listNameAtom,
mapListShowAtom,
} from "../../../recoil/atom";
import CopyClipBoard from "../../../components/CopyClipBoard";
import { IData } from "../Map";
Expand Down Expand Up @@ -177,7 +178,7 @@ const ListMenu = ({ clickEvent, dataArr, wholeData }: IListMenu) => {
const [showMenu, setShowMenu] = useState<boolean>(false);
const [categoryName, setCategoryName] = useRecoilState(categoryNameAtom);
const setListName = useSetRecoilState(listNameAtom);
const [tap, setTap] = useState(false);
const [tap, setTap] = useRecoilState(mapListShowAtom);

const menuList = [
"전체",
Expand Down
5 changes: 5 additions & 0 deletions Frontend/src/recoil/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,8 @@ export const curLocationAtom = atom({
key: `curLocation`,
default: { latitude: 0, longitude: 0 },
});

export const mapListShowAtom = atom({
key: `mapListShow`,
default: false,
});

0 comments on commit 3bcc3da

Please sign in to comment.