Skip to content

Commit

Permalink
feat: 모임 상세 페이지 메뉴에 모임 수정 라우팅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Apr 25, 2024
1 parent 3e253a8 commit 3a212d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/v1/bookGroup/BookGroupNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ const MenuButton = () => {
const { show: showToast } = useToast();
const { isOpen, onClose, onOpen } = useDisclosure();

const handleEditClick = () => {
router.push(`/group/${groupId}/edit`);
return;
};

const handleModalConfirm = async () => {
await deleteBookGroup.mutateAsync(groupId, {
onSuccess: () => {
Expand All @@ -141,7 +146,7 @@ const MenuButton = () => {
<Menu>
<Menu.Toggle />
<Menu.DropdownList>
<Menu.Item>수졍하기</Menu.Item>
<Menu.Item onSelect={handleEditClick}>수정하기</Menu.Item>
<Menu.Item onSelect={onOpen}>삭제하기</Menu.Item>
</Menu.DropdownList>
</Menu>
Expand Down

0 comments on commit 3a212d5

Please sign in to comment.