모의투자 메뉴 제거

This commit is contained in:
Macbook
2026-05-26 17:08:52 +09:00
parent c0d21ac825
commit 3fc0281ec4
4 changed files with 7 additions and 15 deletions
+3 -2
View File
@@ -12,7 +12,7 @@ export type SettingsCategoryId =
| 'paper' | 'alert' | 'network' | 'admin';
export const TOP_MENU_IDS: TopMenuId[] = [
'dashboard', 'chart', 'paper', 'virtual', 'trend-search', 'strategy-editor', 'backtest', 'settings',
'dashboard', 'chart', 'virtual', 'trend-search', 'strategy-editor', 'backtest', 'settings',
];
export const SETTINGS_MENU_IDS: SettingsCategoryId[] = [
@@ -30,7 +30,7 @@ export const MENU_LABELS: Record<string, string> = {
dashboard: '대시보드',
chart: '실시간차트',
paper: '모의투자',
virtual: '가상투자',
virtual: '가상매매',
'trend-search': '추세검색',
strategy: '투자전략',
'strategy-editor': '전략편집기',
@@ -67,6 +67,7 @@ export function canAccessMenu(
permissions: Record<string, boolean> | null | undefined,
menuId: string,
): boolean {
if (menuId === 'paper') return false;
if (menuId === 'strategy') return false;
if (!permissions) return menuId === 'chart';
if (menuId === 'strategy-editor') {