@@ -11,21 +11,19 @@ import {
11
11
} from "@remix-run/react" ;
12
12
import { type UseDataFunctionReturn , typedjson , useTypedLoaderData } from "remix-typedjson" ;
13
13
import { ExternalScripts } from "remix-utils/external-scripts" ;
14
- import { commitSession , getSession } from "~/models/message.server" ;
15
14
import type { ToastMessage } from "~/models/message.server" ;
15
+ import { commitSession , getSession } from "~/models/message.server" ;
16
16
import tailwindStylesheetUrl from "~/tailwind.css" ;
17
17
import { RouteErrorDisplay } from "./components/ErrorDisplay" ;
18
18
import { AppContainer , MainCenteredContainer } from "./components/layout/AppLayout" ;
19
+ import { ShortcutsProvider } from "./components/primitives/ShortcutsProvider" ;
19
20
import { Toast } from "./components/primitives/Toast" ;
20
21
import { env } from "./env.server" ;
21
22
import { featuresForRequest } from "./features.server" ;
22
23
import { usePostHog } from "./hooks/usePostHog" ;
24
+ import { useTypedMatchesData } from "./hooks/useTypedMatchData" ;
23
25
import { getUser } from "./services/session.server" ;
24
26
import { appEnvTitleTag } from "./utils" ;
25
- import { type Handle } from "./utils/handle" ;
26
- import { useEffect } from "react" ;
27
- import { useTypedMatchesData } from "./hooks/useTypedMatchData" ;
28
- import { ShortcutsProvider } from "./components/primitives/ShortcutsProvider" ;
29
27
30
28
declare global {
31
29
interface Window {
@@ -105,7 +103,7 @@ export function ErrorBoundary() {
105
103
< Meta />
106
104
< Links />
107
105
</ head >
108
- < body className = "bg-darkBackground h-full overflow-hidden" >
106
+ < body className = "h-full overflow-hidden bg-background-dimmed " >
109
107
< AppContainer >
110
108
< MainCenteredContainer >
111
109
< RouteErrorDisplay />
@@ -119,7 +117,7 @@ export function ErrorBoundary() {
119
117
}
120
118
121
119
export default function App ( ) {
122
- const { posthogProjectKey, kapa } = useTypedLoaderData < typeof loader > ( ) ;
120
+ const { posthogProjectKey } = useTypedLoaderData < typeof loader > ( ) ;
123
121
usePostHog ( posthogProjectKey ) ;
124
122
125
123
return (
@@ -129,7 +127,7 @@ export default function App() {
129
127
< Meta />
130
128
< Links />
131
129
</ head >
132
- < body className = "bg-darkBackground h-full overflow-hidden" >
130
+ < body className = "h-full overflow-hidden bg-background-dimmed " >
133
131
< ShortcutsProvider >
134
132
< Outlet />
135
133
< Toast />
0 commit comments