diff --git a/src/components/user/HackathonsTab.jsx b/src/components/user/HackathonsTab.jsx index f134ec478..39bd9a35c 100644 --- a/src/components/user/HackathonsTab.jsx +++ b/src/components/user/HackathonsTab.jsx @@ -3,7 +3,8 @@ import { Link } from "react-router-dom"; import { Trophy, Calendar, MapPin, Plus } from "lucide-react"; import StatusBadge from "../common/StatusBadge"; import { DashboardItemCardSkeleton } from "../common/SkeletonLoaders"; -import EmptyState from "../common/EmptyState"; +import SearchEmptyState from "../common/SearchEmptyState"; +import { getSmartDateLabel } from "utils/relativeTime"; const HackathonsTab = ({ hackathons, loading, fadeUp }) => ( @@ -34,8 +35,8 @@ const HackathonsTab = ({ hackathons, loading, fadeUp }) => (

{h.title}

- {h.date} - {h.location} + {h.date ? getSmartDateLabel(h.date) : "—"} + {h.location || "Online"}