Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import {
Outlet,
Scripts,
ScrollRestoration,
useLoaderData, type LoaderFunctionArgs, type MetaFunction
useLoaderData,
type LoaderFunctionArgs,
type MetaFunction,
} from "react-router";
import { useChangeLanguage } from "remix-i18next/react";
import { Toaster } from "./components/ui/toaster";
Expand Down Expand Up @@ -109,13 +111,17 @@ export function App() {
useChangeLanguage(data.locale);

return (
<html lang={data.locale} dir={i18n.dir()} className={clsx("light", "overflow-hidden")}>
<html
lang={data.locale}
dir={i18n.dir()}
className={clsx("light", "overflow-hidden")}
>
<head>
<Meta />
{/* <PreventFlashOnWrongTheme ssrTheme={Boolean(data.theme)} /> */}
<Links />
</head>
<body className="flex h-full flex-col dark:bg-dark-background dark:text-dark-text overflow-visible">
<body className="flex h-full flex-col dark:bg-dark-background dark:text-dark-text overflow-visible overflow-auto">
<Outlet />
<Toaster />
<ScrollRestoration />
Expand Down
Loading