theme.colors.red,
+ flex: 1,
+ alignItems: "center"
+ })}
+ >
+ {error.errors.map((x, i) => (
+ theme.colors.white })}>
+ {x}
+
+ ))}
+
+ );
+};
diff --git a/front/packages/ui/src/navbar/index.tsx b/front/packages/ui/src/navbar/index.tsx
index c3e64330..00755213 100644
--- a/front/packages/ui/src/navbar/index.tsx
+++ b/front/packages/ui/src/navbar/index.tsx
@@ -19,12 +19,11 @@
*/
import useTranslation from "next-translate/useTranslation";
-/* import { Library, LibraryP, Page, Paged } from "~/models"; */
-/* import { QueryIdentifier, useFetch } from "~/utils/query"; */
-/* import { ErrorSnackbar } from "./errors"; */
-import { useYoshiki } from "yoshiki/native";
+import { Library, LibraryP, Page, Paged, QueryIdentifier } from "@kyoo/models";
import { IconButton, Header, Avatar, A, ts } from "@kyoo/primitives";
-import { View } from "react-native";
+import { useYoshiki } from "yoshiki/native";
+import { Text, View } from "react-native";
+import { Fetch } from "../fetch";
import { KyooLongLogo } from "./icon";
const tooltip = (tooltip: string): object => ({});
@@ -34,7 +33,6 @@ export const NavbarTitle = KyooLongLogo;
export const Navbar = () => {
const { css } = useYoshiki();
const { t } = useTranslation("common");
- /* const { data, error, isSuccess, isError } = useFetch(Navbar.query()); */
return (