Browse Source

native nav bar

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

21
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,15 +25,27 @@ class WalletsNav extends React.Component {
}
toggleSendReceiveCoinForms() {
Store.dispatch(toggleSendReceiveCoinForms());
if (this.props.ActiveCoin.mode === 'native') {
Store.dispatch(toggleDashboardActiveSection(this.props.ActiveCoin.nativeActiveSection === 'settings' ? 'default' : 'settings'));
} else {
Store.dispatch(toggleSendReceiveCoinForms());
}
}
toggleSendCoinForm(display) {
Store.dispatch(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) {
Store.dispatch(toggleReceiveCoinForm(display));
if (this.props.ActiveCoin.mode === 'native') {
Store.dispatch(toggleDashboardActiveSection(this.props.ActiveCoin.nativeActiveSection === 'receive' ? 'default' : 'receive'));
} else {
Store.dispatch(toggleReceiveCoinForm(display));
}
}
render() {

Loading…
Cancel
Save