This commit is contained in:
eric
2026-03-16 10:40:49 -05:00
parent 14b0cd2429
commit 3e73917ad1
2 changed files with 16 additions and 2 deletions

View File

@@ -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<typeof getSessionsWithDates>)[0];
session: SessionItem;
index: number;
}) {
const [stats, setStats] = useState<JoinStats | null>(null);

View File

@@ -74,7 +74,7 @@ export default function HostDetailPage() {
<p className="mt-2 text-sm text-amber-600 dark:text-amber-400">
{host.bio}
</p>
{"intro" in host && host.intro && (
{"intro" in host && typeof host.intro === "string" && (
<div className="mt-6 pt-6 border-t border-stone-100 dark:border-stone-700 text-left">
<p className="text-sm text-stone-600 dark:text-stone-400 leading-relaxed">
{host.intro}