use loader

This commit is contained in:
Jonathan Rainville 2018-08-07 12:38:48 -04:00 committed by Pascal Precht
parent 0811733a33
commit 743a80165b
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import PropTypes from "prop-types";
import React, {Component} from 'react';
import connect from "react-redux/es/connect/connect";
import {Alert, Icon, Page} from 'tabler-react';
import {Alert, Loader, Page} from 'tabler-react';
import {messageSend, messageListen, messageVersion} from "../actions";
import Communication from "../components/Communication";
@ -22,7 +22,7 @@ class CommunicationContainer extends Component {
let isEnabledMessage = '';
if (this.props.version === undefined || this.props.version === null) {
isEnabledMessage =
<Alert bsStyle="secondary "><Icon name="refresh-cw"/> Checking Whisper support, please wait</Alert>;
<Alert bsStyle="secondary "><Loader/> Checking Whisper support, please wait</Alert>;
} else if (!this.props.version) {
isEnabledMessage = <Alert type="warning">The node you are using does not support Whisper</Alert>;
} else if (this.props.version === -1) {