Merge branch 'fe/fixLoadingIndicator' into 'frontend'

[Front-End] Fe/fix loading indicator

See merge request s11-webmobile1-sub2/S11P12A701!14
This commit is contained in:
정기영 2024-08-01 17:21:30 +09:00
commit ebaf3d13e0
4 changed files with 4 additions and 5 deletions

View File

@ -82,7 +82,7 @@ export default function LectureLayout() {
)}
</aside>
<main>
<Suspense fallback={<LoadingIndicator full />}>
<Suspense fallback={<LoadingIndicator fill />}>
<Outlet />
</Suspense>
</main>

View File

@ -9,7 +9,7 @@ export default function LiveLayout() {
<>
<LiveHeader />
<div className={styles.wrapper}>
<Suspense fallback={<LoadingIndicator full />}>
<Suspense fallback={<LoadingIndicator fill />}>
<Outlet />
</Suspense>
</div>

View File

@ -22,8 +22,7 @@ export default function MyPageLayout() {
</SideBar>
</aside>
<main>
{/* TODO: 로딩 컴포넌트 추가 */}
<Suspense fallback={<LoadingIndicator full />}>
<Suspense fallback={<LoadingIndicator fill />}>
<Outlet />
</Suspense>
</main>

View File

@ -6,6 +6,6 @@ export default function LoadingIndicator({ fill = false }) {
<div className={styles.indicator} />
</div>
) : (
<div />
<div className={styles.indicator} />
);
}