mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
Update navigation/LazyLoadSettingsStack.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
6e0a1714d5
commit
b824f7336d
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@ const Tools = lazy(() => import('../screen/settings/tools'));
|
|||
const SettingsPrivacy = lazy(() => import('../screen/settings/SettingsPrivacy'));
|
||||
const PlausibleDeniability = lazy(() => import('../screen/PlausibleDeniability'));
|
||||
|
||||
const withSuspense = (Component: React.ComponentType) => () => (
|
||||
const withSuspense = <P extends object>(Component: React.ComponentType<P>) => (props: P) => (
|
||||
<Suspense fallback={<LazyLoadingIndicator />}>
|
||||
<Component />
|
||||
<Component {...props} />
|
||||
</Suspense>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue