Skip to content

Commit

Permalink
♻️ refactor : 메뉴 리스트 데이터
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Jan 30, 2024
1 parent 46b5cc9 commit f548273
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
17 changes: 1 addition & 16 deletions src/app/(Sub)/menu/components/MenuListSection.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
'use client';

import { URL } from '@/constants/url';

interface MenuI {
text: string;
link: string;
highlight?: boolean;
}
const MenuList: readonly MenuI[] = [
{ text: '공지사항', link: URL.menu.notice },
{ text: '자주 묻는 질문', link: URL.menu.faq },
{ text: '포즈피커 공식 SNS', link: URL.instagram, highlight: true },
{ text: '문의하기', link: URL.inquiry },
{ text: '', link: '' },
{ text: '이용약관', link: URL.menu.term },
{ text: '개인정보 처리방침', link: URL.menu.privacy },
] as const;
import MenuList from '@/constants/menuList';

export default function MenuListSection() {
return (
Expand Down
18 changes: 18 additions & 0 deletions src/constants/menuList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { URL } from './url';

interface MenuI {
text: string;
link: string;
highlight?: boolean;
}
const MenuList: readonly MenuI[] = [
{ text: '공지사항', link: URL.menu.notice },
{ text: '자주 묻는 질문', link: URL.menu.faq },
{ text: '포즈피커 공식 SNS', link: URL.instagram, highlight: true },
{ text: '문의하기', link: URL.inquiry },
{ text: '', link: '' },
{ text: '이용약관', link: URL.menu.term },
{ text: '개인정보 처리방침', link: URL.menu.privacy },
] as const;

export default MenuList;

0 comments on commit f548273

Please sign in to comment.