diff --git a/frontend/src/components/TopMenuBar.tsx b/frontend/src/components/TopMenuBar.tsx index 68b43f0..3764d12 100644 --- a/frontend/src/components/TopMenuBar.tsx +++ b/frontend/src/components/TopMenuBar.tsx @@ -2,7 +2,7 @@ * 최상단 글로벌 메뉴바 * * 레이아웃: - * [로고] | [대시보드] [실시간차트] [투자전략] | [테마토글] [로그인] + * [로고] | [대시보드] [실시간차트] [전략편집기] … | [테마토글] [로그인] */ import React, { memo } from 'react'; import type { Theme } from '../types'; @@ -70,17 +70,6 @@ const IcPaper = () => ( ); -const IcStrategy = () => ( - - - - - - - - -); - const IcBacktest = () => ( @@ -144,7 +133,6 @@ const MENU_ITEMS: { page: MenuPage; label: string; icon: React.ReactNode }[] = [ { page: 'dashboard', label: '대시보드', icon: }, { page: 'chart', label: '실시간차트', icon: }, { page: 'paper', label: '모의투자', icon: }, - { page: 'strategy', label: '투자전략', icon: }, { page: 'strategy-editor', label: '전략편집기', icon: }, { page: 'backtest', label: '백테스팅', icon: }, { page: 'settings', label: '설정', icon: }, diff --git a/frontend/src/utils/permissions.ts b/frontend/src/utils/permissions.ts index 2339493..c5e982d 100644 --- a/frontend/src/utils/permissions.ts +++ b/frontend/src/utils/permissions.ts @@ -12,7 +12,7 @@ export type SettingsCategoryId = | 'paper' | 'alert' | 'network' | 'admin'; export const TOP_MENU_IDS: TopMenuId[] = [ - 'dashboard', 'chart', 'paper', 'strategy', 'strategy-editor', 'backtest', 'settings', + 'dashboard', 'chart', 'paper', 'strategy-editor', 'backtest', 'settings', ]; export const SETTINGS_MENU_IDS: SettingsCategoryId[] = [ @@ -65,6 +65,7 @@ export function canAccessMenu( permissions: Record | null | undefined, menuId: string, ): boolean { + if (menuId === 'strategy') return false; if (!permissions) return menuId === 'chart'; if (menuId === 'strategy-editor') { if (permissions['strategy-editor'] === true) return true;