File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
- import { ReactNode , Suspense } from 'react' ;
1
+ import { ReactNode } from 'react' ;
2
2
3
3
import { NextLoader } from '@/app/NextLoader' ;
4
4
5
5
export default function AdminLayout ( { children } : { children : ReactNode } ) {
6
6
return (
7
- < Suspense >
7
+ < >
8
8
< NextLoader lightColor = "white" darkColor = "white" />
9
9
{ children }
10
- </ Suspense >
10
+ </ >
11
11
) ;
12
12
}
Original file line number Diff line number Diff line change 1
- import { ReactNode , Suspense } from 'react' ;
1
+ import { ReactNode } from 'react' ;
2
2
3
3
import { NextLoader } from '@/app/NextLoader' ;
4
4
5
5
export default function AppLayout ( { children } : { children : ReactNode } ) {
6
6
return (
7
- < Suspense >
7
+ < >
8
8
< NextLoader showSpinner />
9
9
{ children }
10
- </ Suspense >
10
+ </ >
11
11
) ;
12
12
}
Original file line number Diff line number Diff line change 1
- import { ReactNode , Suspense } from 'react' ;
1
+ import { ReactNode } from 'react' ;
2
2
3
3
import { Metadata } from 'next' ;
4
4
@@ -18,10 +18,8 @@ export default async function RootLayout({
18
18
} ) {
19
19
return (
20
20
< Document >
21
- < Suspense >
22
- < NextLoader />
23
- { children }
24
- </ Suspense >
21
+ < NextLoader />
22
+ { children }
25
23
</ Document >
26
24
) ;
27
25
}
You can’t perform that action at this time.
0 commit comments