mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
[ENG-1362] Logging in loading state improvement (#1686)
Update AuthRequiredOverlay.tsx
This commit is contained in:
parent
a75093405c
commit
cc18413e08
|
@ -8,7 +8,11 @@ export function AuthRequiredOverlay() {
|
|||
if (authState.status !== 'loggedIn')
|
||||
return (
|
||||
<div className="absolute inset-0 z-50 flex items-center justify-center bg-app/75 backdrop-blur-sm">
|
||||
{authState.status === 'loading' ? <Loader /> : <LoginButton />}
|
||||
{authState.status === 'loading' || authState.status === 'loggingIn' ? (
|
||||
<Loader />
|
||||
) : (
|
||||
<LoginButton />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue