mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Remove some genres list on the home page for performances
This commit is contained in:
parent
445f193dbb
commit
257ead2415
@ -27,13 +27,9 @@ import { GenreGrid } from "./genre";
|
|||||||
import { Recommanded } from "./recommanded";
|
import { Recommanded } from "./recommanded";
|
||||||
import { VerticalRecommanded } from "./vertical";
|
import { VerticalRecommanded } from "./vertical";
|
||||||
import { NewsList } from "./news";
|
import { NewsList } from "./news";
|
||||||
import { useEffect, useState } from "react";
|
|
||||||
import { WatchlistList } from "./watchlist";
|
import { WatchlistList } from "./watchlist";
|
||||||
|
|
||||||
export const HomePage: QueryPage<{}, Genre> = ({ randomItems }) => {
|
export const HomePage: QueryPage<{}, Genre> = ({ randomItems }) => {
|
||||||
const [isClient, setClient] = useState(false);
|
|
||||||
useEffect(() => setClient(true), []);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<Fetch query={Header.query()}>
|
<Fetch query={Header.query()}>
|
||||||
@ -63,7 +59,10 @@ export const HomePage: QueryPage<{}, Genre> = ({ randomItems }) => {
|
|||||||
<GenreGrid key={x} genre={x} />
|
<GenreGrid key={x} genre={x} />
|
||||||
))}
|
))}
|
||||||
<VerticalRecommanded />
|
<VerticalRecommanded />
|
||||||
{isClient && randomItems.filter((_, i) => i >= 6).map((x) => <GenreGrid key={x} genre={x} />)}
|
{/*
|
||||||
|
TODO: Lazy load those items
|
||||||
|
{randomItems.filter((_, i) => i >= 6).map((x) => <GenreGrid key={x} genre={x} />)}
|
||||||
|
*/}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user