diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 9dd9235..feff432 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -385,7 +385,10 @@ function MiniMetric({ label, value, cls = 'text-foreground' }: { label: string; ) } -function StockList({ title, rows, mode }: { title: string; rows: MarketSnapshotRow[]; mode: 'gain' | 'loss' | 'amount' | 'active' }) { +function StockList({ title, rows, mode, onStockClick }: { + title: string; rows: MarketSnapshotRow[]; mode: 'gain' | 'loss' | 'amount' | 'active'; + onStockClick?: (symbol: string, name?: string) => void; +}) { return (