Skip to content

Commit 96058d6

Browse files
committed
chore(mesh-config): fix full screen modal loading
1 parent 6908738 commit 96058d6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/components/Modal/FullScreenModal.tsx

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ComponentChildren } from "preact";
2-
import { route } from "preact-router";
32

43
import Loading from "components/loading";
54

@@ -30,19 +29,13 @@ export const FullScreenModal = ({
3029
</div>
3130
<div className={"text-4xl text-black"}>{title}</div>
3231
</div>
33-
{isLoading ? (
34-
<div class="flex items-center h-full items-center justify-center">
35-
<Loading />
36-
</div>
37-
) : (
38-
<div
39-
className={
40-
"flex flex-col pt-2 bg-white w-full min-h-full h-screen px-4"
41-
}
42-
>
43-
{children}
44-
</div>
45-
)}
32+
<div
33+
className={
34+
"flex flex-col pt-2 bg-white w-full min-h-full h-screen px-4"
35+
}
36+
>
37+
{isLoading ? <Loading /> : children}
38+
</div>
4639
</div>
4740
);
4841
};

0 commit comments

Comments
 (0)