mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-09 14:00:57 +08:00
feat(web): integrate GridRiskPanel into TraderDashboardPage
This commit is contained in:
@@ -9,6 +9,7 @@ import { confirmToast, notify } from '../lib/notify'
|
||||
import { t, type Language } from '../i18n/translations'
|
||||
import { LogOut, Loader2, Eye, EyeOff, Copy, Check } from 'lucide-react'
|
||||
import { DeepVoidBackground } from '../components/DeepVoidBackground'
|
||||
import { GridRiskPanel } from '../components/strategy/GridRiskPanel'
|
||||
import type {
|
||||
SystemStatus,
|
||||
AccountInfo,
|
||||
@@ -539,6 +540,17 @@ export function TraderDashboardPage({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Grid Risk Panel - Only show for grid trading strategy */}
|
||||
{status?.strategy_type === 'grid_trading' && selectedTraderId && (
|
||||
<div className="mb-8 animate-slide-in" style={{ animationDelay: '0.05s' }}>
|
||||
<GridRiskPanel
|
||||
traderId={selectedTraderId}
|
||||
language={language}
|
||||
refreshInterval={5000}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Main Content Area */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
||||
{/* Left Column: Charts + Positions */}
|
||||
|
||||
Reference in New Issue
Block a user