Fix final 2 type errors: cast profile through unknown in CoachDetailPage, remove invalid variant/size props from ZapButton in TourDetailPage

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy 2026-09-03 21:23:32 +07:00
parent be95def874
commit b2339a8fab
2 changed files with 1 additions and 3 deletions

View file

@ -143,7 +143,7 @@ export default function CoachDetailPage() {
// read them through a single typed accessor that returns an optional string
// instead of scattering casts across the JSX. Presence is still gated by the
// isCoach/isBuilder/… flags before these are shown.
const pf = profile as Record<string, unknown>;
const pf = profile as unknown as Record<string, unknown>;
const pget = (key: string): string | undefined => {
const v = pf[key];
return typeof v === 'string' && v.length > 0 ? v : undefined;

View file

@ -200,8 +200,6 @@ export default function TourDetailPage() {
<div className="flex items-center gap-2">
<ZapButton
target={tour.event}
variant="ghost"
size="sm"
className="text-orange-400 hover:text-orange-300 hover:bg-orange-500/10"
/>
<Link to={`/${nip19.npubEncode(tour.pubkey)}`}>