mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format code
This commit is contained in:
parent
e921095226
commit
7f6da9d79e
@ -94,7 +94,7 @@ export const InfiniteFetchList = <Data, Props, _, Kind extends number | string>(
|
||||
if (incremental && items) oldItems.current = items;
|
||||
|
||||
if (error) return <ErrorView error={error} />;
|
||||
if (isPaused) return <OfflineView />
|
||||
if (isPaused) return <OfflineView />;
|
||||
if (empty && items && items.length === 0) {
|
||||
if (typeof empty !== "string") return addHeader(Header, empty, headerProps);
|
||||
return addHeader(Header, <EmptyView message={empty} />, headerProps);
|
||||
|
@ -47,9 +47,7 @@ export const Fetch = <Data,>({
|
||||
query: QueryIdentifier<Data>;
|
||||
placeholderCount?: number;
|
||||
children: (
|
||||
item: Data extends Page<infer Item>
|
||||
? WithLoading<Item>
|
||||
: WithLoading<Data>,
|
||||
item: Data extends Page<infer Item> ? WithLoading<Item> : WithLoading<Data>,
|
||||
i: number,
|
||||
) => JSX.Element | null;
|
||||
}): JSX.Element | null => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user