@@ -517,7 +517,7 @@ function CollectionCard({
|
|||||||
<p className="text-sm text-muted-foreground text-center py-4">暂无股票</p>
|
<p className="text-sm text-muted-foreground text-center py-4">暂无股票</p>
|
||||||
) : (
|
) : (
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
{stocks.slice(0, 10).map((stock) => (
|
{stocks.slice(0, 20).map((stock) => (
|
||||||
<StockRowItem
|
<StockRowItem
|
||||||
key={stock.id}
|
key={stock.id}
|
||||||
stock={stock}
|
stock={stock}
|
||||||
@@ -526,8 +526,8 @@ function CollectionCard({
|
|||||||
swipeResetKey={swipeResetKey}
|
swipeResetKey={swipeResetKey}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{stocks.length > 10 && (
|
{stocks.length > 20 && (
|
||||||
<p className="text-xs text-muted-foreground text-center pt-1">还有 {stocks.length - 10} 只股票...</p>
|
<p className="text-xs text-muted-foreground text-center pt-1">还有 {stocks.length - 20} 只股票...</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user