Skip to content

Commit

Permalink
chore: 레벨로그 기능 일시적으로 제거 (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
euijinkk authored Sep 7, 2022
1 parent ca1e7a7 commit a897f54
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
34 changes: 18 additions & 16 deletions frontend/src/components/NavBar/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const navigationConfig = [
path: PATH.STUDYLOG,
title: '학습로그',
},
{
path: PATH.LEVELLOG,
title: '레벨로그',
},
// {
// path: PATH.LEVELLOG,
// title: '레벨로그',
// },
];

const NavBar = () => {
Expand Down Expand Up @@ -110,17 +110,19 @@ const NavBar = () => {
</Navigation>
{isLoggedIn ? (
<>
<Button
size="XX_SMALL"
icon={PencilIcon}
type="button"
onClick={(e) => {
setWritingDropdownToggled(true);
hideDropdownMenu(e);
}}
cssProps={pencilButtonStyle}
/>
{isWritingDropdownToggled && (
<Link to={PATH.NEW_STUDYLOG}>
<Button
size="XX_SMALL"
icon={PencilIcon}
type="button"
onClick={(e) => {
setWritingDropdownToggled(true);
hideDropdownMenu(e);
}}
cssProps={pencilButtonStyle}
/>
</Link>
{/* {isWritingDropdownToggled && (
<DropdownMenu cssProps={WritingDropdownStyle}>
<ul onClick={onSelectMenu}>
{[
Expand All @@ -139,7 +141,7 @@ const NavBar = () => {
))}
</ul>
</DropdownMenu>
)}
)} */}
<Button
size="XX_SMALL"
type="button"
Expand Down
32 changes: 16 additions & 16 deletions frontend/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ const pageRoutes = [
path: `${PATH.STUDYLOG}/:id/edit`,
render: () => <EditStudylogPage />,
},
{
path: [PATH.LEVELLOG],
render: () => <LevellogListPage />,
},
{
path: [PATH.NEW_LEVELLOG],
render: () => <NewLevellogPage />,
},
{
path: [`${PATH.LEVELLOG}/:id`],
render: () => <LevellogPage />,
},
{
path: [`${PATH.LEVELLOG}/:id/edit`],
render: () => <EditLevellogPage />,
},
// {
// path: [PATH.LEVELLOG],
// render: () => <LevellogListPage />,
// },
// {
// path: [PATH.NEW_LEVELLOG],
// render: () => <NewLevellogPage />,
// },
// {
// path: [`${PATH.LEVELLOG}/:id`],
// render: () => <LevellogPage />,
// },
// {
// path: [`${PATH.LEVELLOG}/:id/edit`],
// render: () => <EditLevellogPage />,
// },
{
path: [PATH.PROFILE],
render: () => <ProfilePage menu={PROFILE_PAGE_MENU.OVERVIEW} />,
Expand Down

0 comments on commit a897f54

Please sign in to comment.