mirror of https://github.com/embarklabs/embark.git
fix whiper in embark-ui
This commit is contained in:
parent
03a32f0434
commit
82e4253e34
|
@ -2,11 +2,15 @@ import PropTypes from "prop-types";
|
||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import connect from "react-redux/es/connect/connect";
|
import connect from "react-redux/es/connect/connect";
|
||||||
import { Alert } from 'reactstrap';
|
import { Alert } from 'reactstrap';
|
||||||
import {messageSend, messageListen} from "../actions";
|
import {messageSend, messageListen, versions} from "../actions";
|
||||||
import Communication from "../components/Communication";
|
import Communication from "../components/Communication";
|
||||||
import {getMessages, getMessageChannels, isOldWeb3, isWeb3Enabled} from "../reducers/selectors";
|
import {getMessages, getMessageChannels, isOldWeb3, isWeb3Enabled} from "../reducers/selectors";
|
||||||
|
|
||||||
class CommunicationContainer extends Component {
|
class CommunicationContainer extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
this.props.fetchVersions();
|
||||||
|
}
|
||||||
|
|
||||||
sendMessage(topic, message) {
|
sendMessage(topic, message) {
|
||||||
this.props.messageSend({topic, message});
|
this.props.messageSend({topic, message});
|
||||||
}
|
}
|
||||||
|
@ -65,7 +69,7 @@ export default connect(
|
||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
{
|
{
|
||||||
messageSend: messageSend.request,
|
messageSend: messageSend.request,
|
||||||
messageListen: messageListen.request
|
messageListen: messageListen.request,
|
||||||
|
fetchVersions: versions.request
|
||||||
}
|
}
|
||||||
)(CommunicationContainer);
|
)(CommunicationContainer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue