fix(dashboard): remove direct trading OrderForm from trading page
Direct trading from the dashboard is not an option in our system. Trading page is now read-only monitoring (positions, orders, order book). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,6 @@ import { CandlestickChart } from '../components/charts/CandlestickChart';
|
||||
import { ComponentErrorBoundary } from '../components/common/ComponentErrorBoundary';
|
||||
import { OrderBook } from '../components/trading/OrderBook';
|
||||
import { PositionsTable } from '../components/trading/PositionsTable';
|
||||
import { OrderForm } from '../components/trading/OrderForm';
|
||||
import { OrdersTable } from '../components/trading/OrdersTable';
|
||||
import { usePositions, useOrders, useOrderBook } from '../hooks/useApi';
|
||||
import { useMarketDataStream } from '../hooks/useGrpcStream';
|
||||
@@ -68,14 +67,9 @@ export function TradingDashboard() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Bottom: Orders + Order Form */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-4">
|
||||
<div className="rounded border border-[var(--color-border)] bg-[var(--color-bg-card)]">
|
||||
<OrdersTable orders={ordersList} loading={orders.isLoading} />
|
||||
</div>
|
||||
<div className="rounded border border-[var(--color-border)] bg-[var(--color-bg-card)]">
|
||||
<OrderForm />
|
||||
</div>
|
||||
{/* Bottom: Orders (read-only monitoring) */}
|
||||
<div className="rounded border border-[var(--color-border)] bg-[var(--color-bg-card)]">
|
||||
<OrdersTable orders={ordersList} loading={orders.isLoading} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user