- {t("errors.connection")}
- {error?.errors[0] ?? t("error.unknown")}
- {t("errors.connection-tips")}
-
-
- );
-};
+import { ConnectionError } from "@kyoo/ui";
export default ConnectionError;
diff --git a/front/apps/web/src/pages/_app.tsx b/front/apps/web/src/pages/_app.tsx
index 21631c51..f5e4e033 100755
--- a/front/apps/web/src/pages/_app.tsx
+++ b/front/apps/web/src/pages/_app.tsx
@@ -33,14 +33,16 @@ import { WebTooltip } from "@kyoo/primitives/src/tooltip.web";
import {
AccountP,
AccountProvider,
+ ConnectionErrorContext,
createQueryClient,
fetchQuery,
getTokenWJ,
QueryIdentifier,
QueryPage,
+ UserP,
useUserTheme,
} from "@kyoo/models";
-import { useState } from "react";
+import { Component, ComponentType, useContext, useState } from "react";
import NextApp, { AppContext, type AppProps } from "next/app";
import { Poppins } from "next/font/google";
import { useTheme, useMobileHover, useStyleRegistry, StyleRegistryProvider } from "yoshiki/web";
@@ -51,6 +53,7 @@ import arrayShuffle from "array-shuffle";
import { Tooltip } from "react-tooltip";
import { getCurrentAccount, readCookie, updateAccount } from "@kyoo/models/src/account-internal";
import { PortalProvider } from "@gorhom/portal";
+import { ConnectionError } from "@kyoo/ui";
const font = Poppins({ weight: ["300", "400", "900"], subsets: ["latin"], display: "swap" });
@@ -114,15 +117,24 @@ const YoshikiDebug = ({ children }: { children: JSX.Element }) => {
return