mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 17:31:27 +00:00
add spinner when waiting for 'user' so page doesn't look broken
This commit is contained in:
parent
aed74c4608
commit
9c20a63ad5
1 changed files with 6 additions and 1 deletions
|
@ -18,6 +18,7 @@ import REWARDS from 'rewards';
|
||||||
import usePersistedState from 'effects/use-persisted-state';
|
import usePersistedState from 'effects/use-persisted-state';
|
||||||
import FileDrop from 'component/fileDrop';
|
import FileDrop from 'component/fileDrop';
|
||||||
import NagContinueFirstRun from 'component/nagContinueFirstRun';
|
import NagContinueFirstRun from 'component/nagContinueFirstRun';
|
||||||
|
import Spinner from 'component/spinner';
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
import useZoom from 'effects/use-zoom';
|
import useZoom from 'effects/use-zoom';
|
||||||
// @endif
|
// @endif
|
||||||
|
@ -294,7 +295,11 @@ function App(props: Props) {
|
||||||
// This also prevents the site from loading in the un-authed state while we wait for internal-apis to return for the first time
|
// This also prevents the site from loading in the un-authed state while we wait for internal-apis to return for the first time
|
||||||
// It's not needed on desktop since there is no un-authed state
|
// It's not needed on desktop since there is no un-authed state
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return null;
|
return (
|
||||||
|
<div className="main--empty">
|
||||||
|
<Spinner delayed />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue