sync activity separately from regular sync

This commit is contained in:
Paul Miller
2023-06-05 17:50:46 -05:00
committed by Tony Giorgio
parent 9186da7fc6
commit 2d99da5245
7 changed files with 186 additions and 141 deletions

View File

@@ -78,21 +78,19 @@ export const DefaultMain: ParentComponent = (props) => {
export const FullscreenLoader = () => {
return (
<div class="w-full h-[100dvh] flex justify-center items-center">
<LoadingSpinner />
</div>
<div class="w-full h-[100dvh] flex justify-center items-center">
<LoadingSpinner wide />
</div>
);
}
export const MutinyWalletGuard: ParentComponent = (props) => {
const [state, _] = useMegaStore();
return (
<Suspense fallback={<FullscreenLoader />}>
<Show when={state.mutiny_wallet}>
{props.children}
</Show>
</Suspense>
)
<Suspense fallback={<FullscreenLoader />}>
<Show when={state.mutiny_wallet && !state.wallet_loading}>{props.children}</Show>
</Suspense>
);
}
export const LoadingSpinner = (props: { big?: boolean, wide?: boolean }) => {