mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-30 16:17:41 +01:00
Add loading screen for SetupPart checks
This commit is contained in:
parent
c0241000d0
commit
e758f32483
1 changed files with 10 additions and 1 deletions
|
@ -8,6 +8,7 @@ import { isExtensionActive } from "@/backend/extension/messaging";
|
|||
import { singularProxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { Button } from "@/components/buttons/Button";
|
||||
import { Icon, Icons } from "@/components/Icon";
|
||||
import { Loading } from "@/components/layout/Loading";
|
||||
import { SettingsCard } from "@/components/layout/SettingsCard";
|
||||
import {
|
||||
StatusCircle,
|
||||
|
@ -121,7 +122,15 @@ export function SetupPart() {
|
|||
const { t } = useTranslation();
|
||||
const navigate = useNavigate();
|
||||
const { loading, setupStates, globalState } = useIsSetup();
|
||||
if (loading || !setupStates) return <p>Loading states...</p>; // TODO proper loading screen
|
||||
if (loading || !setupStates) {
|
||||
return (
|
||||
<SettingsCard>
|
||||
<div className="flex py-6 items-center justify-center">
|
||||
<Loading />
|
||||
</div>
|
||||
</SettingsCard>
|
||||
);
|
||||
}
|
||||
|
||||
const textLookupMap: Record<
|
||||
Status,
|
||||
|
|
Loading…
Reference in a new issue