Skip to content

Commit 398579e

Browse files
committed
🐛 fix(#172): SendLayout Suspense 처리
1 parent 818a14b commit 398579e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/app/send/(process)/layout.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use client';
22

3+
import Loader, { LoaderContainer } from '@/components/common/Loader';
34
import NavigatorBar from '@/components/common/NavigatorBar';
45
import ProgressBar from '@/components/common/ProgressBar';
56
import { theme } from '@/styles/theme';
67
import { usePathname, useSearchParams } from 'next/navigation';
7-
import React from 'react';
8+
import React, { Suspense } from 'react';
89
import styled from 'styled-components';
910

1011
interface 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

5164
const Container = styled.div`
5265
width: 100%;

0 commit comments

Comments
 (0)