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