We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6908738 commit 96058d6Copy full SHA for 96058d6
src/components/Modal/FullScreenModal.tsx
@@ -1,5 +1,4 @@
1
import { ComponentChildren } from "preact";
2
-import { route } from "preact-router";
3
4
import Loading from "components/loading";
5
@@ -30,19 +29,13 @@ export const FullScreenModal = ({
30
29
</div>
31
<div className={"text-4xl text-black"}>{title}</div>
32
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
45
- )}
+ <div
+ className={
+ "flex flex-col pt-2 bg-white w-full min-h-full h-screen px-4"
+ }
+ >
+ {isLoading ? <Loading /> : children}
+ </div>
46
47
);
48
};
0 commit comments