From 3fc0281ec4af28737883023ef55d3940beea31b4 Mon Sep 17 00:00:00 2001 From: Macbook Date: Tue, 26 May 2026 17:08:52 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EC=9D=98=ED=88=AC=EC=9E=90=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/TopMenuBar.tsx | 11 +---------- frontend/src/components/VirtualTradingPage.tsx | 4 ++-- .../components/virtual/VirtualGridUnifiedHeader.tsx | 2 +- frontend/src/utils/permissions.ts | 5 +++-- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/TopMenuBar.tsx b/frontend/src/components/TopMenuBar.tsx index 4c177b6..8b1a91a 100644 --- a/frontend/src/components/TopMenuBar.tsx +++ b/frontend/src/components/TopMenuBar.tsx @@ -62,14 +62,6 @@ const IcChart = () => ( ); -const IcPaper = () => ( - - - - - -); - const IcBacktest = () => ( @@ -148,8 +140,7 @@ const IcTrendSearch = () => ( const MENU_ITEMS: { page: MenuPage; label: string; icon: React.ReactNode }[] = [ { page: 'dashboard', label: '대시보드', icon: }, { page: 'chart', label: '실시간차트', icon: }, - { page: 'paper', label: '모의투자', icon: }, - { page: 'virtual', label: '가상투자', icon: }, + { page: 'virtual', label: '가상매매', icon: }, { page: 'trend-search', label: '추세검색', icon: }, { page: 'strategy-editor', label: '전략편집기', icon: }, { page: 'backtest', label: '백테스팅', icon: }, diff --git a/frontend/src/components/VirtualTradingPage.tsx b/frontend/src/components/VirtualTradingPage.tsx index 3e92a6d..df63df5 100644 --- a/frontend/src/components/VirtualTradingPage.tsx +++ b/frontend/src/components/VirtualTradingPage.tsx @@ -340,11 +340,11 @@ const VirtualTradingPage: React.FC = ({ return ( = ({ aria-label="자동매매" title={ !paperTradingEnabled - ? '설정 › 가상투자에서 가상투자를 활성화하세요' + ? '설정 › 가상투자에서 가상매매를 활성화하세요' : paperAutoTradeEnabled ? 'Match 충족 시 자동 매수·매도' : '수동 주문만 가능' diff --git a/frontend/src/utils/permissions.ts b/frontend/src/utils/permissions.ts index f417cf8..5d72d51 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', '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 = { dashboard: '대시보드', chart: '실시간차트', paper: '모의투자', - virtual: '가상투자', + virtual: '가상매매', 'trend-search': '추세검색', strategy: '투자전략', 'strategy-editor': '전략편집기', @@ -67,6 +67,7 @@ export function canAccessMenu( permissions: Record | null | undefined, menuId: string, ): boolean { + if (menuId === 'paper') return false; if (menuId === 'strategy') return false; if (!permissions) return menuId === 'chart'; if (menuId === 'strategy-editor') {