Session 26: Cross-sport tab counts, scan copy fix, game card visual polish, empty section auto-hide (1579 tests)
This commit is contained in:
@@ -341,12 +341,14 @@ export default function DashboardPage() {
|
||||
)}
|
||||
</Section>
|
||||
|
||||
{/* Most parlayed tonight */}
|
||||
{/* Most parlayed tonight — Session 26: auto-hide the whole section
|
||||
once loaded with no data. An empty "be the first" prompt on a
|
||||
fresh platform reads as dead space; show it only when there's
|
||||
real trending activity (or while still loading). */}
|
||||
{(mostParlayed === null || mostParlayed.length > 0) && (
|
||||
<Section title="Most parlayed tonight" subtitle="What other bettors are stacking." right={<span className="mono" style={{ fontSize: 11, color: 'var(--text-tertiary)' }}>🔥 TRENDING</span>}>
|
||||
{mostParlayed === null ? (
|
||||
<SkeletonRow />
|
||||
) : mostParlayed.length === 0 ? (
|
||||
<p style={emptyCopy}>No parlays built yet tonight. Be the first.</p>
|
||||
) : (
|
||||
<ul style={{ display: 'grid', gap: 8 }}>
|
||||
{mostParlayed.map((p, i) => (
|
||||
@@ -390,6 +392,7 @@ export default function DashboardPage() {
|
||||
</ul>
|
||||
)}
|
||||
</Section>
|
||||
)}
|
||||
|
||||
{/* Recent scans OR first-timer onboarding */}
|
||||
<Section title={isFirstTimer ? 'Your first read' : 'Your recent reads'} subtitle={null}>
|
||||
|
||||
Reference in New Issue
Block a user