You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
626 B

import React from 'react';
import { connect } from 'react-redux';
import WalletsBasiliskRefreshRender from './walletsBasiliskRefresh.render';
8 years ago
class WalletsBasiliskRefresh extends React.Component {
isBasiliskRefresh() {
return this.props &&
this.props.Dashboard.basiliskRefresh;
}
render() {
if (this.isBasiliskRefresh()) {
return WalletsBasiliskRefreshRender.call(this);
}
return null;
}
}
const mapStateToProps = (state) => {
return {
Dashboard: {
basiliskRefresh: state.Dashboard.basiliskRefresh,
}
};
};
export default connect(mapStateToProps)(WalletsBasiliskRefresh);