mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 17:34:39 +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 { t, type Language } from '../i18n/translations'
|
||||||
import { LogOut, Loader2, Eye, EyeOff, Copy, Check } from 'lucide-react'
|
import { LogOut, Loader2, Eye, EyeOff, Copy, Check } from 'lucide-react'
|
||||||
import { DeepVoidBackground } from '../components/DeepVoidBackground'
|
import { DeepVoidBackground } from '../components/DeepVoidBackground'
|
||||||
|
import { GridRiskPanel } from '../components/strategy/GridRiskPanel'
|
||||||
import type {
|
import type {
|
||||||
SystemStatus,
|
SystemStatus,
|
||||||
AccountInfo,
|
AccountInfo,
|
||||||
@@ -539,6 +540,17 @@ export function TraderDashboardPage({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</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 */}
|
{/* Main Content Area */}
|
||||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
||||||
{/* Left Column: Charts + Positions */}
|
{/* Left Column: Charts + Positions */}
|
||||||
|
|||||||
Reference in New Issue
Block a user