diff --git a/front/packages/models/package.json b/front/packages/models/package.json index c0adccba..331276e5 100644 --- a/front/packages/models/package.json +++ b/front/packages/models/package.json @@ -8,6 +8,7 @@ "typescript": "^4.9.3" }, "peerDependencies": { + "@tanstack/react-query": "*", "react": "*", "react-native": "*" }, @@ -17,7 +18,6 @@ } }, "dependencies": { - "@tanstack/react-query": "^4.18.0", "zod": "^3.19.1" } } diff --git a/front/packages/primitives/src/skeleton.tsx b/front/packages/primitives/src/skeleton.tsx index 9f90a0a8..acefffa2 100644 --- a/front/packages/primitives/src/skeleton.tsx +++ b/front/packages/primitives/src/skeleton.tsx @@ -18,4 +18,16 @@ * along with Kyoo. If not, see . */ -export { Skeleton } from "moti/skeleton"; +import { View } from "moti"; +import { Skeleton as MSkeleton } from "moti/skeleton"; +import { ComponentProps } from "react"; +import { useYoshiki, rem, px, Stylable } from "yoshiki/native"; + +export const Skeleton = ({ style, ...props }: ComponentProps & Stylable) => { + const { css } = useYoshiki(); + return ( + + + + ); +}; diff --git a/front/packages/ui/package.json b/front/packages/ui/package.json index a55f6e46..9561b9ef 100644 --- a/front/packages/ui/package.json +++ b/front/packages/ui/package.json @@ -13,6 +13,7 @@ "typescript": "^4.9.3" }, "peerDependencies": { + "@tanstack/react-query": "*", "expo-linear-gradient": "*", "moti": "*", "react": "*", diff --git a/front/packages/ui/src/navbar/index.tsx b/front/packages/ui/src/navbar/index.tsx index bc1f63dc..c054ad68 100644 --- a/front/packages/ui/src/navbar/index.tsx +++ b/front/packages/ui/src/navbar/index.tsx @@ -20,7 +20,7 @@ import useTranslation from "next-translate/useTranslation"; import { Library, LibraryP, Page, Paged, QueryIdentifier } from "@kyoo/models"; -import { useYoshiki } from "yoshiki/native"; +import { rem, useYoshiki } from "yoshiki/native"; import { IconButton, Header, Avatar, A, Skeleton, ts } from "@kyoo/primitives"; import { Text, View } from "react-native"; import { Fetch } from "../fetch"; @@ -86,18 +86,10 @@ export const Navbar = () => { {library.name} ) : ( - <> - Toto - {/* */} - {/* */} - {/* */} - + ) } - - Toto - diff --git a/front/yarn.lock b/front/yarn.lock index 355e7223..efcf0305 100644 --- a/front/yarn.lock +++ b/front/yarn.lock @@ -2280,11 +2280,11 @@ __metadata: version: 0.0.0-use.local resolution: "@kyoo/models@workspace:packages/models" dependencies: - "@tanstack/react-query": ^4.18.0 "@types/react": ^18.0.25 typescript: ^4.9.3 zod: ^3.19.1 peerDependencies: + "@tanstack/react-query": "*" react: "*" react-native: "*" peerDependenciesMeta: @@ -2326,6 +2326,7 @@ __metadata: react-native-svg: ^13.6.0 typescript: ^4.9.3 peerDependencies: + "@tanstack/react-query": "*" expo-linear-gradient: "*" moti: "*" react: "*"