Skip to content

Commit

Permalink
feat: dropdown route 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 24, 2024
1 parent 2c7ba26 commit c47472f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions client/src/pages/EventPage/AdminPage/AdminPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ const AdminPage = () => {
}, [postAuthenticate]);

const navigateAccountInputPage = () => {
// TODO:(@cookie) 569 λΈŒλžœμΉ˜κ°€ λ¨Έμ§€λœ 후에 μž‘μ—… κ°€λŠ₯ν•©λ‹ˆλ‹€.
navigate('/');
navigate(`/event/${eventId}/admin/edit`);
};

const navigateEventMemberManage = () => {
navigate(`/event/${eventId}/admin/member`);
};

return (
Expand All @@ -41,8 +44,8 @@ const AdminPage = () => {
amount={totalExpenseAmount}
dropdown={
<Dropdown>
<DropdownButton text="전체 μ°Έμ—¬μž 관리" />
<DropdownButton text="κ³„μ’Œλ²ˆν˜Έ μž…λ ₯ν•˜κΈ°" />
<DropdownButton text="전체 μ°Έμ—¬μž 관리" onClick={navigateEventMemberManage} />
<DropdownButton text="κ³„μ’Œλ²ˆν˜Έ μž…λ ₯ν•˜κΈ°" onClick={navigateAccountInputPage} />
</Dropdown>
}
/>
Expand Down

0 comments on commit c47472f

Please sign in to comment.