File tree 1 file changed +9
-1
lines changed
lazyweb/components/snippets
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ const Code = dynamic(() => import('./micro/Code'), { ssr: false })
8
8
9
9
type Props = { }
10
10
11
+ const FallBackUI = ( ) => {
12
+ return (
13
+ < div className = 'w-full h-full flex items-center justify-center' >
14
+ < div className = ' text-2xl font-bold' > Loading Editor...</ div >
15
+ </ div >
16
+ )
17
+ }
18
+
11
19
const SnippetsContainer = ( props : Props ) => {
12
20
const router = useRouter ( )
13
21
@@ -16,7 +24,7 @@ const SnippetsContainer = (props: Props) => {
16
24
< NavBar />
17
25
< div className = 'min-h-[100vh] relative flex px-[10vw] py-[calc(10vh+80px)] items-center flex-col justify-center w-full bg-[#202123]' >
18
26
< Container >
19
- < Suspense fallback = { < div > Loading Editor... </ div > } >
27
+ < Suspense fallback = { < FallBackUI / >} >
20
28
< div className = 'relative' >
21
29
22
30
< Code />
You can’t perform that action at this time.
0 commit comments