Actual in-progress-connect overlay (#4047)
This commit is contained in:
parent
c10533112f
commit
a3752f389a
@ -90,7 +90,7 @@ export default React.memo(styled(BaseOverlay)(({ theme }: ThemeProps) => `
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
max-width: 50rem;
|
||||
padding: 1em;
|
||||
padding: 1em 3rem 1em;
|
||||
position: relative;
|
||||
|
||||
.contentIcon {
|
||||
|
||||
@ -19,9 +19,19 @@ interface Props {
|
||||
|
||||
function Connecting ({ className }: Props): React.ReactElement<Props> | null {
|
||||
const { t } = useTranslation();
|
||||
const { isApiConnected, isWaitingInjected } = useApi();
|
||||
const { isApiConnected, isApiReady, isWaitingInjected } = useApi();
|
||||
|
||||
if (isWaitingInjected) {
|
||||
if (!isApiReady) {
|
||||
return (
|
||||
<BaseOverlay
|
||||
className={className}
|
||||
icon='puzzle-piece'
|
||||
type='info'
|
||||
>
|
||||
<div>{t<string>('Waiting to make a connection to the remote endpoint and finishing API initialization.')}</div>
|
||||
</BaseOverlay>
|
||||
);
|
||||
} else if (isWaitingInjected) {
|
||||
return (
|
||||
<BaseOverlay
|
||||
className={className}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user