mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-21 16:24:22 +01:00
sync activity separately from regular sync
This commit is contained in:
committed by
Tony Giorgio
parent
9186da7fc6
commit
2d99da5245
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user