Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#684] [fix] Dropdown Menu를 BottomSheet로 수정 #686

Merged
merged 3 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/profile/me/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const MyProfileForAuth = () => {
<TopHeader text="Profile">
<Menu>
<Menu.Toggle />
<Menu.DropdownList>
<Menu.BottomSheetList>
<Menu.Item onSelect={handleLogoutButtonClick}>로그아웃</Menu.Item>
</Menu.DropdownList>
</Menu.BottomSheetList>
</Menu>
</TopHeader>
<div className="flex flex-col gap-[1rem]">
Expand Down
4 changes: 2 additions & 2 deletions src/components/bookGroup/BookGroupNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ const MenuButton = () => {
<>
<Menu>
<Menu.Toggle />
<Menu.DropdownList>
<Menu.BottomSheetList>
<Menu.Item onSelect={handleEditClick}>수정하기</Menu.Item>
<Menu.Item onSelect={onOpen}>삭제하기</Menu.Item>
</Menu.DropdownList>
</Menu.BottomSheetList>
</Menu>
<DeleteBookGroupModal
isOpen={isOpen}
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/CommentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ const CommentActionMenu = ({
<>
<Menu>
<Menu.Toggle />
<Menu.DropdownList>
<Menu.BottomSheetList>
<Menu.Item onSelect={onDrawerOpen}>수정하기</Menu.Item>
<Menu.Item onSelect={onModalOpen}>삭제하기</Menu.Item>
</Menu.DropdownList>
</Menu.BottomSheetList>
</Menu>
<EditCommentDrawer
isOpen={isDrawerOpen}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Item = ({

return (
<li
className="block cursor-pointer list-none truncate whitespace-nowrap rounded-[0.5rem] px-[1rem] py-[0.7rem] font-body2-regular hover:bg-black-100"
className="flex cursor-pointer select-none list-none flex-col truncate whitespace-nowrap rounded-[0.5rem] px-[1rem] pt-[1rem] font-body1-regular after:mt-[1rem] after:block after:h-[0.1rem] after:w-full after:bg-black-300 last:after:w-0 hover:bg-black-100"
onClick={handleItemClick}
>
{children}
Expand Down
Loading