Change loading state. Closes #2248
This commit is contained in:
parent
b4fb6b77b9
commit
660ea10dab
@ -1,5 +1,5 @@
|
||||
import { useRecoilState, useRecoilValue } from 'recoil';
|
||||
import { Layout, Tabs, Spin } from 'antd';
|
||||
import { Layout, Tabs, Skeleton } from 'antd';
|
||||
import { FC, MutableRefObject, useEffect, useRef, useState } from 'react';
|
||||
import cn from 'classnames';
|
||||
import dynamic from 'next/dynamic';
|
||||
@ -304,10 +304,10 @@ export const Content: FC = () => {
|
||||
return (
|
||||
<>
|
||||
<div className={styles.main}>
|
||||
<Spin wrapperClassName={styles.loadingSpinner} size="large" spinning={appState.appLoading}>
|
||||
<AntContent className={styles.root}>
|
||||
<div className={styles.mainSection}>
|
||||
<div className={styles.topSection}>
|
||||
{appState.appLoading && <Skeleton loading active paragraph={{ rows: 7 }} />}
|
||||
{online && <OwncastPlayer source="/hls/stream.m3u8" online={online} />}
|
||||
{!online && !appState.appLoading && (
|
||||
<OfflineBanner
|
||||
@ -386,7 +386,6 @@ export const Content: FC = () => {
|
||||
</div>
|
||||
{showChat && !isMobile && <Sidebar />}
|
||||
</AntContent>
|
||||
</Spin>
|
||||
{!isMobile && false && <Footer version={version} />}
|
||||
</div>
|
||||
{externalActionToDisplay && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user