feature: add LoadingScreen in with-daemon-status-check

This commit is contained in:
George Lima 2018-12-19 12:59:31 -03:00
parent a07c724f12
commit c89cc6ee2a
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
// @flow
import React, { type ComponentType, Component } from 'react';
import { LoadingScreen } from './loading-screen';
import rpc from '../../services/api';
type State = {
@ -51,6 +53,6 @@ export const withDaemonStatusCheck = <PassedProps: {}>(
return <WrappedComponent {...this.props} {...this.state} />;
}
return 'Daemon is starting...';
return <LoadingScreen />;
}
};