diff --git a/apps/web/src/app/dash/pass/page.tsx b/apps/web/src/app/dash/pass/page.tsx index a37d1856..dfbfefd7 100644 --- a/apps/web/src/app/dash/pass/page.tsx +++ b/apps/web/src/app/dash/pass/page.tsx @@ -1,7 +1,5 @@ import QRCode from "react-qr-code"; import { currentUser } from "@clerk/nextjs"; -import { InferModel } from "db/drizzle"; -import { userCommonData } from "db/schema"; import Image from "next/image"; import c from "config"; import { format } from "date-fns"; @@ -13,9 +11,10 @@ import { DrawerTrigger, } from "@/components/shadcn/ui/drawer"; import { getHacker } from "db/functions"; +import { Hacker } from "db/types"; interface EventPassProps { - user: InferModel; + user: Hacker; clerk: NonNullable>>; qrPayload: string; guild: string; diff --git a/apps/web/src/components/schedule/Day.tsx b/apps/web/src/components/schedule/Day.tsx index 22a5d4db..7edde7a8 100644 --- a/apps/web/src/components/schedule/Day.tsx +++ b/apps/web/src/components/schedule/Day.tsx @@ -1,19 +1,18 @@ -import { events } from "db/schema"; -import { InferModel } from "db/drizzle"; -import { format, compareAsc } from "date-fns"; +import { compareAsc } from "date-fns"; import { Badge } from "@/components/shadcn/ui/badge"; import c from "config"; import Link from "next/link"; import { formatInTimeZone } from "date-fns-tz"; +import { Event } from "db/types"; interface DayProps { title: string; subtitle: string; - events: InferModel[]; + events: Event[]; } interface EventItemProps { - event: InferModel; + event: Event; } export default function Day({ title, subtitle, events }: DayProps) { diff --git a/apps/web/src/components/schedule/EventFull.tsx b/apps/web/src/components/schedule/EventFull.tsx index 922fcded..d52fcdb6 100644 --- a/apps/web/src/components/schedule/EventFull.tsx +++ b/apps/web/src/components/schedule/EventFull.tsx @@ -1,14 +1,13 @@ -import { events } from "db/schema"; -import { InferModel } from "db/drizzle"; import c from "config"; import { Badge } from "@/components/shadcn/ui/badge"; import Balancer from "react-wrap-balancer"; import { formatInTimeZone } from "date-fns-tz"; +import { Event } from "db/types"; export default function EventFull({ event, }: { - event: InferModel; + event: Event; }) { return (