feat(ui): improve loading state

This commit is contained in:
Gabe Kangas 2023-06-27 22:51:56 -07:00
parent ac8f9b3945
commit d60289c8bc
No known key found for this signature in database
GPG key ID: 4345B2060657F330
2 changed files with 7 additions and 4 deletions

View file

@ -435,10 +435,13 @@ export const ClientConfigStore: FC = () => {
}, [hasLoadedConfig, accessToken]);
useEffect(() => {
updateClientConfig();
if (!(window as any).configHydration) {
updateClientConfig();
}
handleUserRegistration();
updateServerStatus();
if (!(window as any).statusHydration) {
updateServerStatus();
}
clearInterval(serverStatusRefreshPoll);
serverStatusRefreshPoll = setInterval(() => {
updateServerStatus();

View file

@ -194,7 +194,7 @@ export const Content: FC = () => {
<>
<>
{appState.appLoading && (
<Skeleton loading active paragraph={{ rows: 7 }} className={styles.topSectionElement} />
<div className={styles.topSectionElement} style={{ height: '30vh' }} />
)}
{showChat && !isMobile && <Sidebar />}
<Row>