mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 09:35:05 +01:00
PR review changes
This commit is contained in:
parent
48b708d569
commit
bbf5645c2b
@ -4,7 +4,7 @@ import "./stores/__old/imports";
|
|||||||
import "@/setup/ga";
|
import "@/setup/ga";
|
||||||
import "@/assets/css/index.css";
|
import "@/assets/css/index.css";
|
||||||
|
|
||||||
import React, { Suspense, useCallback } from "react";
|
import { StrictMode, Suspense, useCallback } from "react";
|
||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import { HelmetProvider } from "react-helmet-async";
|
import { HelmetProvider } from "react-helmet-async";
|
||||||
@ -145,19 +145,21 @@ const container = document.getElementById("root");
|
|||||||
const root = createRoot(container!);
|
const root = createRoot(container!);
|
||||||
|
|
||||||
root.render(
|
root.render(
|
||||||
<ErrorBoundary>
|
<StrictMode>
|
||||||
<TurnstileProvider />
|
<ErrorBoundary>
|
||||||
<HelmetProvider>
|
<TurnstileProvider />
|
||||||
<Suspense fallback={<LoadingScreen type="lazy" />}>
|
<HelmetProvider>
|
||||||
<ThemeProvider applyGlobal>
|
<Suspense fallback={<LoadingScreen type="lazy" />}>
|
||||||
<ProgressSyncer />
|
<ThemeProvider applyGlobal>
|
||||||
<BookmarkSyncer />
|
<ProgressSyncer />
|
||||||
<SettingsSyncer />
|
<BookmarkSyncer />
|
||||||
<TheRouter>
|
<SettingsSyncer />
|
||||||
<MigrationRunner />
|
<TheRouter>
|
||||||
</TheRouter>
|
<MigrationRunner />
|
||||||
</ThemeProvider>
|
</TheRouter>
|
||||||
</Suspense>
|
</ThemeProvider>
|
||||||
</HelmetProvider>
|
</Suspense>
|
||||||
</ErrorBoundary>,
|
</HelmetProvider>
|
||||||
|
</ErrorBoundary>
|
||||||
|
</StrictMode>,
|
||||||
);
|
);
|
||||||
|
@ -55,7 +55,7 @@ export function TrustBackendPart(props: TrustBackendPartProps) {
|
|||||||
icon={<Icon icon={Icons.CIRCLE_EXCLAMATION} />}
|
icon={<Icon icon={Icons.CIRCLE_EXCLAMATION} />}
|
||||||
>
|
>
|
||||||
<span className="text-white">
|
<span className="text-white">
|
||||||
<Trans i18nKey="auth.trust.host">{{ hostname }}</Trans>
|
<Trans i18nKey="auth.trust.host">{[{ hostname }]}</Trans>
|
||||||
</span>
|
</span>
|
||||||
</LargeCardText>
|
</LargeCardText>
|
||||||
|
|
||||||
|
@ -53,7 +53,8 @@ export function MetaPart(props: MetaPartProps) {
|
|||||||
|
|
||||||
let data: ReturnType<typeof decodeTMDBId> = null;
|
let data: ReturnType<typeof decodeTMDBId> = null;
|
||||||
try {
|
try {
|
||||||
data = decodeTMDBId(params.media as string);
|
if (!params.media) throw new Error("no media params");
|
||||||
|
data = decodeTMDBId(params.media);
|
||||||
} catch {
|
} catch {
|
||||||
// error dont matter, itll just be a 404
|
// error dont matter, itll just be a 404
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user