diff --git a/front/packages/ui/src/browse/index.tsx b/front/packages/ui/src/browse/index.tsx index d7f259d6..6960591e 100644 --- a/front/packages/ui/src/browse/index.tsx +++ b/front/packages/ui/src/browse/index.tsx @@ -73,7 +73,6 @@ export const BrowsePage: QueryPage = () => { return ( = ({ slug }) => { return ( ({ return ( . */ -import { Person, PersonP, QueryIdentifier } from "@kyoo/models"; -import { useTranslation } from "react-i18next"; -import { InfiniteFetch } from "../fetch-infinite"; -import { PersonAvatar } from "./person"; +// import { Person, PersonP, QueryIdentifier } from "@kyoo/models"; +// import { useTranslation } from "react-i18next"; +// import { InfiniteFetch } from "../fetch-infinite"; +// import { PersonAvatar } from "./person"; -export const Staff = ({ slug }: { slug: string }) => { - const { t } = useTranslation(); - - return ( - - {(item, key) => ( - - )} - - ); -}; - -Staff.query = (slug: string): QueryIdentifier => ({ - parser: PersonP, - path: ["shows", slug, "people"], - infinite: true, -}); +// export const Staff = ({ slug }: { slug: string }) => { +// const { t } = useTranslation(); +// +// return ( +// +// {(item, key) => ( +// +// )} +// +// ); +// }; +// +// Staff.query = (slug: string): QueryIdentifier => ({ +// parser: PersonP, +// path: ["shows", slug, "people"], +// infinite: true, +// }); diff --git a/front/packages/ui/src/fetch-infinite.tsx b/front/packages/ui/src/fetch-infinite.tsx index 11c9c1e8..89b164ad 100644 --- a/front/packages/ui/src/fetch-infinite.tsx +++ b/front/packages/ui/src/fetch-infinite.tsx @@ -26,7 +26,7 @@ import { EmptyView, ErrorView, Layout, WithLoading, addHeader } from "./fetch"; export const InfiniteFetchList = ({ query, - placeholderCount = 15, + placeholderCount = 2, incremental = false, children, layout, diff --git a/front/packages/ui/src/fetch-infinite.web.tsx b/front/packages/ui/src/fetch-infinite.web.tsx index 86e489e9..2266a417 100644 --- a/front/packages/ui/src/fetch-infinite.web.tsx +++ b/front/packages/ui/src/fetch-infinite.web.tsx @@ -137,7 +137,7 @@ const InfiniteScroll = ({ export const InfiniteFetchList = ({ query, incremental = false, - placeholderCount = 15, + placeholderCount = 2, children, layout, empty, diff --git a/front/packages/ui/src/home/genre.tsx b/front/packages/ui/src/home/genre.tsx index de867302..a02bc048 100644 --- a/front/packages/ui/src/home/genre.tsx +++ b/front/packages/ui/src/home/genre.tsx @@ -76,7 +76,7 @@ export const GenreGrid = ({ genre }: { genre: Genre }) => { {(x, i) => { diff --git a/front/packages/ui/src/search/index.tsx b/front/packages/ui/src/search/index.tsx index c36f442f..0ab26eea 100644 --- a/front/packages/ui/src/search/index.tsx +++ b/front/packages/ui/src/search/index.tsx @@ -59,7 +59,6 @@ export const SearchPage: QueryPage<{ q?: string }> = ({ q }) => { return (