Skip to content

Commit

Permalink
chore :: menu에 타입
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 6, 2024
1 parent 13a433b commit f3c81e4
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions src/components/common/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,25 @@ import { useState } from 'react';
import { Icon } from '@iconify/react';
import { useMatch } from 'react-router-dom';

const menu = [
type MenuType = {
icon: string;
name: string;
link: string;
};

type MenusType = {
path: string;
isBack: boolean | string;
menu: MenuType[];
};

const menu: MenusType[] = [
{
path: '/team',
isBack: false,
menu: [
{ icon: 'ph:circles-four-light', name: '팀' },
{ icon: 'icon-park-outline:people', name: '계정' },
],
},
{
path: '/team/:id',
isBack: false,
menu: [
{ icon: 'ph:circles-four-light', name: '팀2' },
{ icon: 'icon-park-outline:people', name: '계정2' },
],
},
{
path: '/team/:id/manage',
isBack: false,
menu: [
{ icon: 'ph:circles-four-light', name: '팀3' },
{ icon: 'icon-park-outline:people', name: '계정3' },
{ icon: 'ph:circles-four-light', name: '팀', link: '' },
{ icon: 'icon-park-outline:people', name: '계정', link: '' },
],
},
];
Expand Down

0 comments on commit f3c81e4

Please sign in to comment.