diff --git a/packages/frontend/src/pages/stock-detail/StockMetricsPanel.tsx b/packages/frontend/src/pages/stock-detail/StockMetricsPanel.tsx index c2c238d..dbc5cde 100644 --- a/packages/frontend/src/pages/stock-detail/StockMetricsPanel.tsx +++ b/packages/frontend/src/pages/stock-detail/StockMetricsPanel.tsx @@ -14,7 +14,7 @@ interface RealTimeStockData { volume: number; } -const StockMetricsPanel = ({ +export const StockMetricsPanel = ({ eps, high52w, low52w, @@ -60,11 +60,10 @@ const StockMetricsPanel = ({ return (
{!price || !change || !volume ? ( -
- - - - +
+ {Array.from({ length: 4 }, () => ( + + ))}
) : ( Object.values(metricsData).map((section) => ( @@ -86,5 +85,3 @@ const StockMetricsPanel = ({
); }; - -export default StockMetricsPanel;