's'
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user