diff --git a/app/routes/__auth/logout.tsx b/app/routes/__auth/logout.tsx index 9196e23..234d375 100644 --- a/app/routes/__auth/logout.tsx +++ b/app/routes/__auth/logout.tsx @@ -12,13 +12,11 @@ export const loader:LoaderFunction = async ({ request, context }) => { return {} } -const Logout = () => { +export const Logout = () => { return ( - <> -
- > + ) } diff --git a/app/routes/app.tsx b/app/routes/app.tsx new file mode 100644 index 0000000..352eab8 --- /dev/null +++ b/app/routes/app.tsx @@ -0,0 +1,63 @@ +import type { LoaderFunction } from "@remix-run/cloudflare"; +import { Form, Link, Outlet } from "@remix-run/react"; +import { Typography } from "@supabase/ui"; +import { Users } from "react-feather"; +import { getSession } from "~/auth.server"; +import Logout from "./__auth/logout"; + +export const loader: LoaderFunction = async ({ request, context }) => { + await getSession(context, request); + return {}; +}; + +const Sidebar = () => { + return ( +