This commit is contained in:
Kalle
2026-08-09 14:37:08 +03:00
parent 52c65412c5
commit 383d713bcb
3 changed files with 5 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import {
type ScannerTab,
scannerSearchParams,
} from "../scanner-search-params";
import styles from "./App.module.css";
import styles from "./ScannerApp.module.css";
import { LivePage } from "./LivePage";
import { ScreenshotPage } from "./ScreenshotPage";
import type { SendouUser } from "./sendou-ingest";
@@ -21,7 +21,7 @@ const TAB_LABELS: Record<ScannerTab, string> = {
vod: "VoD",
};
export function App() {
export function ScannerApp() {
const [tab] = useSearchParam(scannerSearchParams, "tab");
const rootUser = useUser();
const sendouUser: SendouUser | null = rootUser

View File

@@ -29,7 +29,9 @@ export const meta: MetaFunction = (args) => {
// may be imported at route-module top level — only from inside this lazily
// imported client component tree, after hydration.
const ScannerApp = lazy(() =>
import("~/features/scanner/components/App").then((m) => ({ default: m.App })),
import("~/features/scanner/components/ScannerApp").then((m) => ({
default: m.ScannerApp,
})),
);
export default function ScannerPage() {