diff --git a/app/components/SessionCard.tsx b/app/components/SessionCard.tsx index c3ff80c..f3e15e6 100644 --- a/app/components/SessionCard.tsx +++ b/app/components/SessionCard.tsx @@ -14,11 +14,25 @@ interface JoinStats { const MOCK_JOINERS = RECENT_JOINERS.slice(0, 3); +type SessionTag = keyof typeof SESSION_TAGS; + +interface SessionItem { + id: string; + type: "skill-exchange" | "side-hustle" | "loft" | "light-chat"; + title: string; + date: string; + time: string; + place: string; + city: string; + coverImage?: string; + tags?: readonly SessionTag[]; +} + export default function SessionCard({ session, index, }: { - session: (ReturnType)[0]; + session: SessionItem; index: number; }) { const [stats, setStats] = useState(null); diff --git a/app/host/[id]/page.tsx b/app/host/[id]/page.tsx index b00d0a3..f33d6d6 100644 --- a/app/host/[id]/page.tsx +++ b/app/host/[id]/page.tsx @@ -74,7 +74,7 @@ export default function HostDetailPage() {

{host.bio}

- {"intro" in host && host.intro && ( + {"intro" in host && typeof host.intro === "string" && (

{host.intro}