mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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/>.
|
||||
*/
|
||||
|
||||
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";
|
||||
|
@ -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) =>
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user