diff --git a/react/src/components/dashboard/walletsNav.js b/react/src/components/dashboard/walletsNav.js index 6d409ee..b30c428 100644 --- a/react/src/components/dashboard/walletsNav.js +++ b/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() {