Format front

This commit is contained in:
Zoe Roux 2023-12-12 14:35:02 +01:00
parent 7de920154c
commit 7403be6519
3 changed files with 3 additions and 9 deletions

View File

@ -18,13 +18,7 @@
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
import {
Genre,
LibraryItem,
LibraryItemP,
QueryIdentifier,
useInfiniteFetch,
} from "@kyoo/models";
import { Genre, LibraryItem, LibraryItemP, QueryIdentifier, useInfiniteFetch } from "@kyoo/models";
import { H3, ts } from "@kyoo/primitives";
import { useRef } from "react";
import { View } from "react-native";

View File

@ -39,7 +39,7 @@ export const NewsList = () => {
getItemType={(x, i) =>
x.kind === NewsKind.Movie || (x.isLoading && i % 2) ? "movie" : "episode"
}
getItemSize={(kind) => kind === "episode" ? 2 : 1}
getItemSize={(kind) => (kind === "episode" ? 2 : 1)}
empty={t("home.none")}
>
{(x, i) =>

View File

@ -52,7 +52,7 @@ export const WatchlistList = () => {
? "episode"
: "item"
}
getItemSize={(kind) => kind === "episode" ? 2 : 1}
getItemSize={(kind) => (kind === "episode" ? 2 : 1)}
empty={t("home.none")}
>
{(x, i) => {