mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -04:00
Format front
This commit is contained in:
parent
7de920154c
commit
7403be6519
@ -18,13 +18,7 @@
|
|||||||
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Genre, LibraryItem, LibraryItemP, QueryIdentifier, useInfiniteFetch } from "@kyoo/models";
|
||||||
Genre,
|
|
||||||
LibraryItem,
|
|
||||||
LibraryItemP,
|
|
||||||
QueryIdentifier,
|
|
||||||
useInfiniteFetch,
|
|
||||||
} from "@kyoo/models";
|
|
||||||
import { H3, ts } from "@kyoo/primitives";
|
import { H3, ts } from "@kyoo/primitives";
|
||||||
import { useRef } from "react";
|
import { useRef } from "react";
|
||||||
import { View } from "react-native";
|
import { View } from "react-native";
|
||||||
|
@ -39,7 +39,7 @@ export const NewsList = () => {
|
|||||||
getItemType={(x, i) =>
|
getItemType={(x, i) =>
|
||||||
x.kind === NewsKind.Movie || (x.isLoading && i % 2) ? "movie" : "episode"
|
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")}
|
empty={t("home.none")}
|
||||||
>
|
>
|
||||||
{(x, i) =>
|
{(x, i) =>
|
||||||
|
@ -52,7 +52,7 @@ export const WatchlistList = () => {
|
|||||||
? "episode"
|
? "episode"
|
||||||
: "item"
|
: "item"
|
||||||
}
|
}
|
||||||
getItemSize={(kind) => kind === "episode" ? 2 : 1}
|
getItemSize={(kind) => (kind === "episode" ? 2 : 1)}
|
||||||
empty={t("home.none")}
|
empty={t("home.none")}
|
||||||
>
|
>
|
||||||
{(x, i) => {
|
{(x, i) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user