+
{/* 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/components/ItemManager/index.tsx b/app/components/ItemManager/index.tsx
index 419711b..21a43c8 100644
--- a/app/components/ItemManager/index.tsx
+++ b/app/components/ItemManager/index.tsx
@@ -2,19 +2,11 @@ import type { LoaderData as GameLoaderData } from '~/routes/_app.games.$game'
import type { LoaderData } from '~/routes/_app.games.$game.rebels'
import EditButton from '../EditButton'
import { sortItems } from '~/utils/sortItems'
-import {
- Reducer,
- useCallback,
- useEffect,
- useId,
- useMemo,
- useReducer
-} from 'react'
+import type { Reducer } from 'react'
+import { useCallback, useEffect, useId, useMemo, useReducer } from 'react'
import { useFetcher } from 'react-router-dom'
-import {
- ActionData,
- itemValidator
-} from '~/routes/_app.games.$game.rebels.items'
+import type { ActionData } from '~/routes/_app.games.$game.rebels.items'
+import { itemValidator } from '~/routes/_app.games.$game.rebels.items'
import SubmitButton from '../SubmitButton'
import TextInput from '../TextInput'
import { ValidatedForm } from 'remix-validated-form'
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}