Skip to content

Commit

Permalink
운영 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
golony6449 committed Jun 30, 2024
1 parent e8cd4e4 commit b687863
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 40 deletions.
49 changes: 25 additions & 24 deletions src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,31 @@ const Nav = () => {
</SubMenus>
</Menu>
))}
<Menu className="menu-item border-bottom">
{isLogin ? (
<SubMenu
className="sub-menu-item"
onClick={() => {
setOpenMenu(false);
localStorage.removeItem("id");
navigate("/");
}}
>
{t("로그아웃")}
</SubMenu>
) : (
<SubMenu
className="sub-menu-item"
onClick={() => {
setOpenMenu(false);
navigate("/login");
}}
>
{t("로그인")}
</SubMenu>
)}
</Menu>
{/*TODO: 필요시 활성화*/}
{/*<Menu className="menu-item border-bottom">*/}
{/* {isLogin ? (*/}
{/* <SubMenu*/}
{/* className="sub-menu-item"*/}
{/* onClick={() => {*/}
{/* setOpenMenu(false);*/}
{/* localStorage.removeItem("id");*/}
{/* navigate("/");*/}
{/* }}*/}
{/* >*/}
{/* {t("로그아웃")}*/}
{/* </SubMenu>*/}
{/* ) : (*/}
{/* <SubMenu*/}
{/* className="sub-menu-item"*/}
{/* onClick={() => {*/}
{/* setOpenMenu(false);*/}
{/* navigate("/login");*/}
{/* }}*/}
{/* >*/}
{/* {t("로그인")}*/}
{/* </SubMenu>*/}
{/* )}*/}
{/*</Menu>*/}
<Menu className="menu-item">
<span>{t("언어")}</span>
<SubMenus className="sub-menu">
Expand Down
26 changes: 13 additions & 13 deletions src/components/Nav/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ const Menus = {
},
],
},
ticket: {
name: "티켓",
sub: [
{
name: "티켓 구매하기",
path: "buy",
},
{
name: "구매 내역",
path: "payment-list",
},
],
},
// ticket: {
// name: "티켓",
// sub: [
// {
// name: "티켓 구매하기",
// path: "buy",
// },
// {
// name: "구매 내역",
// path: "payment-list",
// },
// ],
// },
contribution: {
name: "기여하기",
sub: [
Expand Down
6 changes: 3 additions & 3 deletions src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const Router = () => {
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about/pyconkr2024" element={<Pyconkr2024 />} />
<Route path="/login" element={<Login />} />
<Route path="/ticket/buy" element={<TicketPage />} />
<Route path="/ticket/payment-list" element={<PaymentList />} />
{/*<Route path="/login" element={<Login />} />*/}
{/*<Route path="/ticket/buy" element={<TicketPage />} />*/}
{/*<Route path="/ticket/payment-list" element={<PaymentList />} />*/}
<Route path="/sponsoring/sponsor/prospectus" element={<SponsorPage />} />
<Route path="/contribution/cfp" element={<Cfp />} />
<Route path="/terms-of-service" element={<TermsOfService />} />
Expand Down

0 comments on commit b687863

Please sign in to comment.