Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Dec 19, 2023
1 parent e921095 commit 7f6da9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion front/packages/ui/src/fetch-infinite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions front/packages/ui/src/fetch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 7f6da9d

Please sign in to comment.