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

LNB 아이콘 추가 #272

Merged
merged 4 commits into from
Jul 4, 2023
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
5 changes: 5 additions & 0 deletions src/assets/svg/activity-score.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/svg/admin-members.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/application-form.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/svg/application.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/svg/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/svg/logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/svg/my-page.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/svg/recruit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/assets/svg/schedule.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/svg/signup-code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 23 additions & 7 deletions src/components/common/LNB/LNB.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,34 @@ import { colors } from '@/styles';

import { Navigation } from '@/components';

import ApplicationIcon from '@/assets/svg/application.svg';
import ApplicationFormIcon from '@/assets/svg/application-form.svg';
import EmailIcon from '@/assets/svg/email.svg';
import ActivityScoreIcon from '@/assets/svg/activity-score.svg';
import ScheduleIcon from '@/assets/svg/schedule.svg';
// import SignupCodeIcon from "@/assets/svg/signup-code.svg"
// import RecruitIcon from "@/assets/svg/recruit.svg"
// import AdminMembersIcon from '@/assets/svg/admin-members.svg';
// import MyPageIcon from "@/assets/svg/my-page.svg"

const navigationItems: NavigationItem[] = [
{
title: '리크루팅 관리',
menus: [
{
label: '지원서',
to: PATH.APPLICATION,
icon: <ApplicationIcon />,
},
{
label: '지원서 설문지',
to: PATH.APPLICATION_FORM,
icon: <ApplicationFormIcon />,
},
{
label: '이메일 발송 내역',
to: PATH.EMAIL,
icon: <EmailIcon />,
},
],
},
Expand All @@ -32,15 +45,17 @@ const navigationItems: NavigationItem[] = [
{
label: '활동점수',
to: PATH.ACTIVITY_SCORE,
icon: <ActivityScoreIcon />,
},
{
label: '스케줄 정보',
to: PATH.SCHEDULE,
icon: <ScheduleIcon />,
},
// TODO: 추가 예정 메뉴
// {
// label: '가입 코드',
// to: '',
// to: PATH.SIGNUP_CODE,
// },
],
},
Expand All @@ -50,7 +65,7 @@ const navigationItems: NavigationItem[] = [
// menus: [
// {
// label: '모집 공고',
// to: '',
// to: PATH.RECRUIT,
// },
// ],
// },
Expand All @@ -59,12 +74,13 @@ const navigationItems: NavigationItem[] = [
// menus: [
// {
// label: '계정 목록',
// to: '#',
// },
// {
// label: '내 정보',
// to: '',
// to: PATH.ADMIN_MEMBERS,
// icon: <AdminMembersIcon />,
// },
// {
// label: '내 정보',
// to: PATH.MY_PAGE,
// },
// ],
// },
];
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/Navigation/Navigation.component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { ReactElement } from 'react';
import { useLocation } from 'react-router-dom';
import { ValueOf } from '@/types';
import { colors } from '@/styles';
Expand All @@ -9,6 +9,7 @@ import { PATH } from '@/constants';
interface Menu {
label: string;
to: ValueOf<typeof PATH>;
icon: ReactElement;
}

export interface NavigationItem {
Expand Down Expand Up @@ -53,7 +54,7 @@ const Navigation = ({ size, inActiveColor, items, showBottomBorder = true }: Nav
inActiveColor={inActiveColor}
active={isActive}
>
<Styled.NavigationItemWrapper />
<Styled.NavigationIcon>{menu.icon}</Styled.NavigationIcon>
{menu.label}
</Styled.NavigationItem>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/common/Navigation/Navigation.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Navigation, {
} from './Navigation.component';
import { colors } from '@/styles';
import { PATH } from '@/constants';
import ApplicationIcon from '@/assets/svg/application.svg';

export default {
title: 'Navigation',
Expand All @@ -24,6 +25,7 @@ const items: NavigationItem[] = [
{
label: 'All',
to: PATH.NOT_FOUND,
icon: <ApplicationIcon />,
},
],
},
Expand Down
Loading
Loading