Browse Source

native nav bar

all-modes
pbca26 8 years ago
parent
commit
c6da87c160
  1. 15
      react/src/components/dashboard/walletsNav.js

15
react/src/components/dashboard/walletsNav.js

@ -5,7 +5,8 @@ import {
iguanaEdexBalance,
toggleSendCoinForm,
toggleReceiveCoinForm,
toggleSendReceiveCoinForms
toggleSendReceiveCoinForms,
toggleDashboardActiveSection
} from '../../actions/actionCreators';
import Store from '../../store';
@ -24,16 +25,28 @@ class WalletsNav extends React.Component {
}
toggleSendReceiveCoinForms() {
if (this.props.ActiveCoin.mode === 'native') {
Store.dispatch(toggleDashboardActiveSection(this.props.ActiveCoin.nativeActiveSection === 'settings' ? 'default' : 'settings'));
} else {
Store.dispatch(toggleSendReceiveCoinForms());
}
}
toggleSendCoinForm(display) {
if (this.props.ActiveCoin.mode === 'native') {
Store.dispatch(toggleDashboardActiveSection(this.props.ActiveCoin.nativeActiveSection === 'send' ? 'default' : 'send'));
} else {
Store.dispatch(toggleSendCoinForm(display));
}
}
toggleReceiveCoinForm(display) {
if (this.props.ActiveCoin.mode === 'native') {
Store.dispatch(toggleDashboardActiveSection(this.props.ActiveCoin.nativeActiveSection === 'receive' ? 'default' : 'receive'));
} else {
Store.dispatch(toggleReceiveCoinForm(display));
}
}
render() {
if (this.props && this.props.ActiveCoin && !this.props.ActiveCoin.coin) {

Loading…
Cancel
Save