File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3+ import Loader , { LoaderContainer } from '@/components/common/Loader' ;
34import NavigatorBar from '@/components/common/NavigatorBar' ;
45import ProgressBar from '@/components/common/ProgressBar' ;
56import { theme } from '@/styles/theme' ;
67import { usePathname , useSearchParams } from 'next/navigation' ;
7- import React from 'react' ;
8+ import React , { Suspense } from 'react' ;
89import styled from 'styled-components' ;
910
1011interface SendLayoutProps {
@@ -46,7 +47,19 @@ const SendLayout = ({ children }: SendLayoutProps) => {
4647 ) ;
4748} ;
4849
49- export default SendLayout ;
50+ export default function SendLayouting ( { children } : SendLayoutProps ) {
51+ return (
52+ < Suspense
53+ fallback = {
54+ < LoaderContainer >
55+ < Loader />
56+ </ LoaderContainer >
57+ }
58+ >
59+ < SendLayout > { children } </ SendLayout >
60+ </ Suspense >
61+ ) ;
62+ }
5063
5164const Container = styled . div `
5265 width: 100%;
You can’t perform that action at this time.
0 commit comments