diff --git a/app/routes/play/index.tsx b/app/routes/play/index.tsx index 4157fbcdf..7843066fb 100644 --- a/app/routes/play/index.tsx +++ b/app/routes/play/index.tsx @@ -5,12 +5,22 @@ import { LoaderFunction, MetaFunction, redirect, + useLocation, + useTransition, } from "remix"; import { z } from "zod"; import { LFGGroupSelector } from "~/components/play/LFGGroupSelector"; import styles from "~/styles/play.css"; -import { getUser, makeTitle, parseRequestFormData, requireUser } from "~/utils"; +import { + getLogInUrl, + getUser, + makeTitle, + parseRequestFormData, + requireUser, +} from "~/utils"; import * as LFGGroup from "~/models/LFGGroup.server"; +import { Button } from "~/components/Button"; +import { useUser } from "~/hooks/common"; export const links: LinksFunction = () => { return [{ rel: "stylesheet", href: styles }]; @@ -86,12 +96,34 @@ export const loader: LoaderFunction = async ({ context }) => { }; export default function PlayPage() { + const transition = useTransition(); + const user = useUser(); + const location = useLocation(); + return (