fix: remove unused columns constant (TS6133)
This commit is contained in:
@@ -14,16 +14,6 @@ function pnlColor(v: number | null | undefined) {
|
|||||||
return v >= 0 ? 'text-green-400' : 'text-red-400';
|
return v >= 0 ? 'text-green-400' : 'text-red-400';
|
||||||
}
|
}
|
||||||
|
|
||||||
const columns: Column<Position>[] = [
|
|
||||||
{ key: 'ticker', header: 'Ticker', className: 'font-mono font-semibold text-brand-300' },
|
|
||||||
{ key: 'quantity', header: 'Qty' },
|
|
||||||
{ key: 'avg_entry_price', header: 'Entry', render: (r) => <span>{fmtUsd(r.avg_entry_price)}</span> },
|
|
||||||
{ key: 'current_price', header: 'Current', render: (r) => <span>{fmtUsd(r.current_price)}</span> },
|
|
||||||
{ key: 'unrealized_pnl', header: 'Unrealized P&L', render: (r) => <span className={pnlColor(r.unrealized_pnl)}>{fmtUsd(r.unrealized_pnl)}</span> },
|
|
||||||
{ key: 'realized_pnl', header: 'Realized P&L', render: (r) => <span className={pnlColor(r.realized_pnl)}>{fmtUsd(r.realized_pnl)}</span> },
|
|
||||||
{ key: 'updated_at', header: 'Updated', render: (r) => <span className="text-xs">{new Date(r.updated_at).toLocaleString()}</span> },
|
|
||||||
];
|
|
||||||
|
|
||||||
export function PositionsPage() {
|
export function PositionsPage() {
|
||||||
const { data, isLoading } = usePositions();
|
const { data, isLoading } = usePositions();
|
||||||
const { data: companies } = useCompanies();
|
const { data: companies } = useCompanies();
|
||||||
|
|||||||
Reference in New Issue
Block a user