diff --git a/src/routes/events/index.tsx b/src/routes/events/index.tsx index 01515be..3c22c7d 100644 --- a/src/routes/events/index.tsx +++ b/src/routes/events/index.tsx @@ -1,5 +1,6 @@ import { createFileRoute } from '@tanstack/react-router'; -import { BellIcon, ClockIcon, Header, PinIcon, PlusIcon } from '../../components'; +import { Clock } from "flowbite-react-icons/solid"; +import { BellIcon, Header, PinIcon, PlusIcon } from '../../components'; import { AuthGuard } from '../../utils/auth'; import { supabase } from '../../utils/supabase'; interface Event { @@ -42,24 +43,32 @@ function EventIndex() {

最新揪人

-
- {events.map((event) => ( - - ))} +
+
+ {events.map((event) => ( + + ))} +

最新活動

-
- {events.map((event) => ( - - ))} +
+
+ {events.map((event) => ( + + ))} +
-
-
+ + +
{/* This button will close the dialog */} @@ -86,12 +100,12 @@ function EventIndex() { function EventCard({ event }: { event: Event }) { const startTime = event.start_time ? new Date(event.start_time) : new Date(); return ( -
+

{event.name}

- + {startTime.toLocaleString('zh-TW', { month: '2-digit', day: '2-digit',