기존 투자전략 메뉴 삭제
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* 최상단 글로벌 메뉴바
|
||||
*
|
||||
* 레이아웃:
|
||||
* [로고] | [대시보드] [실시간차트] [투자전략] | [테마토글] [로그인]
|
||||
* [로고] | [대시보드] [실시간차트] [전략편집기] … | [테마토글] [로그인]
|
||||
*/
|
||||
import React, { memo } from 'react';
|
||||
import type { Theme } from '../types';
|
||||
@@ -70,17 +70,6 @@ const IcPaper = () => (
|
||||
</svg>
|
||||
);
|
||||
|
||||
const IcStrategy = () => (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
|
||||
<circle cx="8" cy="8" r="6.5"/>
|
||||
<circle cx="8" cy="8" r="2.5"/>
|
||||
<line x1="8" y1="1.5" x2="8" y2="5.5"/>
|
||||
<line x1="8" y1="10.5" x2="8" y2="14.5"/>
|
||||
<line x1="1.5" y1="8" x2="5.5" y2="8"/>
|
||||
<line x1="10.5" y1="8" x2="14.5" y2="8"/>
|
||||
</svg>
|
||||
);
|
||||
|
||||
const IcBacktest = () => (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
|
||||
<rect x="1" y="9" width="2.5" height="5" rx="0.5"/>
|
||||
@@ -144,7 +133,6 @@ const MENU_ITEMS: { page: MenuPage; label: string; icon: React.ReactNode }[] = [
|
||||
{ page: 'dashboard', label: '대시보드', icon: <IcDashboard /> },
|
||||
{ page: 'chart', label: '실시간차트', icon: <IcChart /> },
|
||||
{ page: 'paper', label: '모의투자', icon: <IcPaper /> },
|
||||
{ page: 'strategy', label: '투자전략', icon: <IcStrategy /> },
|
||||
{ page: 'strategy-editor', label: '전략편집기', icon: <IcStrategyEditor /> },
|
||||
{ page: 'backtest', label: '백테스팅', icon: <IcBacktest /> },
|
||||
{ page: 'settings', label: '설정', icon: <IcSettings /> },
|
||||
|
||||
@@ -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<string, boolean> | 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;
|
||||
|
||||
Reference in New Issue
Block a user