Skip to content

Commit def360d

Browse files
committed
remove imports and fix invalid tailwind class
1 parent f5151b0 commit def360d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

apps/webapp/app/root.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@ import {
1111
} from "@remix-run/react";
1212
import { type UseDataFunctionReturn, typedjson, useTypedLoaderData } from "remix-typedjson";
1313
import { ExternalScripts } from "remix-utils/external-scripts";
14-
import { commitSession, getSession } from "~/models/message.server";
1514
import type { ToastMessage } from "~/models/message.server";
15+
import { commitSession, getSession } from "~/models/message.server";
1616
import tailwindStylesheetUrl from "~/tailwind.css";
1717
import { RouteErrorDisplay } from "./components/ErrorDisplay";
1818
import { AppContainer, MainCenteredContainer } from "./components/layout/AppLayout";
19+
import { ShortcutsProvider } from "./components/primitives/ShortcutsProvider";
1920
import { Toast } from "./components/primitives/Toast";
2021
import { env } from "./env.server";
2122
import { featuresForRequest } from "./features.server";
2223
import { usePostHog } from "./hooks/usePostHog";
24+
import { useTypedMatchesData } from "./hooks/useTypedMatchData";
2325
import { getUser } from "./services/session.server";
2426
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";
2927

3028
declare global {
3129
interface Window {
@@ -105,7 +103,7 @@ export function ErrorBoundary() {
105103
<Meta />
106104
<Links />
107105
</head>
108-
<body className="bg-darkBackground h-full overflow-hidden">
106+
<body className="h-full overflow-hidden bg-background-dimmed">
109107
<AppContainer>
110108
<MainCenteredContainer>
111109
<RouteErrorDisplay />
@@ -119,7 +117,7 @@ export function ErrorBoundary() {
119117
}
120118

121119
export default function App() {
122-
const { posthogProjectKey, kapa } = useTypedLoaderData<typeof loader>();
120+
const { posthogProjectKey } = useTypedLoaderData<typeof loader>();
123121
usePostHog(posthogProjectKey);
124122

125123
return (
@@ -129,7 +127,7 @@ export default function App() {
129127
<Meta />
130128
<Links />
131129
</head>
132-
<body className="bg-darkBackground h-full overflow-hidden">
130+
<body className="h-full overflow-hidden bg-background-dimmed">
133131
<ShortcutsProvider>
134132
<Outlet />
135133
<Toast />

0 commit comments

Comments
 (0)