Skip to content

Commit 665fafa

Browse files
fix(hero): drop unused stats prop + colors import (TS6133 build errors)
Cloud Build's `tsc --noEmit` caught two unused-declaration errors that Vite HMR didn't: `stats` on HeroSectionProps is no longer needed since the stats moved to NumbersStrip, and `colors` is no longer imported in NumbersStrip after dropping the green/italic accents. Remove both and update the two callers (LandingPage + HomePage) to stop passing stats. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7cfd7fc commit 665fafa

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/src/components/HeroSection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { PlotOfTheDayTerminal } from './PlotOfTheDayTerminal';
77
import type { PlotOfTheDayData } from '../hooks/usePlotOfTheDay';
88

99
interface HeroSectionProps {
10-
stats: { specs: number; plots: number; libraries: number; lines_of_code?: number } | null;
1110
potd?: PlotOfTheDayData | null;
1211
}
1312

@@ -17,7 +16,7 @@ interface HeroSectionProps {
1716
* on ultrawide. Each landing-page section below mirrors this width so the
1817
* page reads as one continuous grid.
1918
*/
20-
export function HeroSection({ stats, potd = null }: HeroSectionProps) {
19+
export function HeroSection({ potd = null }: HeroSectionProps) {
2120
return (
2221
<Box
2322
sx={{

app/src/components/NumbersStrip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Box from '@mui/material/Box';
2-
import { colors, typography } from '../theme';
2+
import { typography } from '../theme';
33

44
interface NumbersStripProps {
55
stats: { specs: number; plots: number; libraries: number; lines_of_code?: number } | null;

app/src/pages/HomePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function HomePage() {
196196
{showHero && (
197197
<>
198198
<MastheadRule />
199-
<HeroSection stats={stats} />
199+
<HeroSection />
200200
<NumbersStrip stats={stats} />
201201
<LibrariesSection libraries={librariesData} onLibraryClick={handleLibraryClick} />
202202
<CodeShowcase />

app/src/pages/LandingPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function LandingPage() {
5656
}}
5757
>
5858
<Container maxWidth={false} sx={catalogContainerSx}>
59-
<HeroSection stats={stats} potd={potd} />
59+
<HeroSection potd={potd} />
6060
<NumbersStrip stats={stats} />
6161
</Container>
6262
</Box>

0 commit comments

Comments
 (0)