Commit e98ecd4
authored
fix(website): unbreak TS build (AnalyticsSurface + Button anchorAttrs) (#274)
* fix(website): add 'home_whitepaper' to AnalyticsSurface
WhitePaperBlock.tsx passes 'home_whitepaper' as the surface property
when tracking signup submissions, but the AnalyticsSurface union did
not include that value — causing TS2322 build failures on main since
the Statusbrew website refactor landed (#270).
This is blocking unrelated PRs from merging because Website lint is a
required check.
* fix(website): remove redundant cast that re-introduces href on anchorAttrs
The 'rest as AnchorButtonProps' cast on line 115 contradicted the prior
destructure on line 106 that pulled 'href' out — TS then inferred that
anchorAttrs still had 'href', conflicting with the explicit href={href}
JSX prop. Result: TS2783 'href is specified more than once' build
failure since the Statusbrew website refactor (#270).
Removing the redundant cast lets TS infer anchorAttrs from the runtime-
true type (rest without href).1 parent fefe825 commit e98ecd4
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments