Skip to content

Commit

Permalink
[TS migration] MobileBudget tsx (actualbudget#2081)
Browse files Browse the repository at this point in the history
* MobileBudget tsx

* Release notes

* Fix type error

* Update upcoming-release-notes/2081.md

Co-authored-by: Matiss Janis Aboltins <[email protected]>

* SyncRefresh.tsx

* Remove loadCategories

---------

Co-authored-by: Matiss Janis Aboltins <[email protected]>
  • Loading branch information
joel-jeremy and MatissJanis authored Jan 6, 2024
1 parent bc07235 commit 8bf0f8e
Show file tree
Hide file tree
Showing 9 changed files with 526 additions and 501 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ReactNode, useState } from 'react';
import React, { type ReactNode, useState } from 'react';

type ChildrenProps = {
refreshing: boolean;
Expand All @@ -17,5 +17,5 @@ export function SyncRefresh({ onSync, children }: SyncRefreshProps) {
setSyncing(false);
}

return children({ refreshing: syncing, onRefresh: onSync_ });
return <>{children({ refreshing: syncing, onRefresh: onSync_ })}</>;
}
Loading

0 comments on commit 8bf0f8e

Please sign in to comment.