From a5313202ee367b615001600630ac73bf71250fe7 Mon Sep 17 00:00:00 2001 From: HamsterStudent Date: Sat, 4 Nov 2023 12:56:12 +0900 Subject: [PATCH] :lipstick: Style : fix arrow temp --- Frontend/public/assets/icon/icon_arrow.png | Bin 0 -> 181 bytes .../src/pages/Map/components/ListMenu.tsx | 44 +++++++++++------- 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 Frontend/public/assets/icon/icon_arrow.png diff --git a/Frontend/public/assets/icon/icon_arrow.png b/Frontend/public/assets/icon/icon_arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..e55d9bca6411677043880820dcc8f78b0b880b2f GIT binary patch literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^{6Ngf!3HGX_Lqf&I0YV&#S9GG!XV7ZFl&wkP>``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eBzL%$qV@L(#+=(}N83Y7a<1@W3FwPBF` + display: inline-block; + transform-origin: 45% 65%; + transform: ${(props) => (props.isOpen ? "rotate(180deg)" : null)}; +`; + const SelectList = styled.ul` width: 153px; border-radius: 12px; @@ -146,7 +156,7 @@ interface IListMenu { } const ListMenu = ({ clickEvent, dataArr, wholeData }: IListMenu) => { - const [showMenu, setShowMenu] = useState(false); + const [showMenu, setShowMenu] = useState(false); const [categoryName, setCategoryName] = useRecoilState(categoryNameAtom); const setListName = useSetRecoilState(listNameAtom); @@ -173,21 +183,23 @@ const ListMenu = ({ clickEvent, dataArr, wholeData }: IListMenu) => {

setShowMenu((prev) => !prev)}> {categoryName}{" "} - - - + + + + +

{showMenu ? (