+
{/* Disclaimer copied from https://cards.boardwars.eu/ */}
This website is not produced, endorsed, supported, or affiliated with
Fantasy Flight Games. The copyrightable portions of Star Wars: Imperial
diff --git a/app/root.tsx b/app/root.tsx
index 83e5ab4..af5dac9 100644
--- a/app/root.tsx
+++ b/app/root.tsx
@@ -1,4 +1,4 @@
-import type { LinksFunction } from '@vercel/remix'
+import type { LinksFunction, LoaderFunction } from '@vercel/remix'
import {
Links,
Meta,
@@ -6,15 +6,19 @@ import {
Scripts,
ScrollRestoration
} from '@remix-run/react'
+import { rootAuthLoader } from '@clerk/remix/ssr.server'
import stylesheet from '~/tailwind.css?url'
import { useTheme } from './context/theme-context'
+import { ClerkApp } from '@clerk/remix'
+
+export const loader: LoaderFunction = (args) => rootAuthLoader(args)
export const links: LinksFunction = () => [
{ rel: 'stylesheet', href: stylesheet }
]
-export default function App() {
+export function Layout({ children }: { children: React.ReactNode }) {
const { theme } = useTheme()
return (
@@ -26,10 +30,16 @@ export default function App() {
-
+ {children}