clear mtxActive on nav and if you join game. put shop before reshape

This commit is contained in:
Mashy 2019-10-22 11:12:25 +10:00
parent a304f003d0
commit 56f3647025
3 changed files with 9 additions and 7 deletions

View File

@ -40,7 +40,7 @@ const addState = connect(
dispatch(actions.setItemEquip(null));
dispatch(actions.setItemUnequip([]));
dispatch(actions.setVboxHighlight([]));
dispatch(actions.setMtxActive(null));
return dispatch(actions.setNav(place));
}
@ -83,16 +83,16 @@ function Header(args) {
class={`login-btn ${nav === 'play' ? 'highlight' : ''}`}>
Play
</button>
<button
onClick={() => navTo('reshape')}
class={`login-btn ${nav === 'reshape' ? 'highlight' : ''}`}>
Reshape
</button>
<button
onClick={() => navTo('shop')}
class={`login-btn ${nav === 'shop' ? 'highlight' : ''}`}>
Shop
</button>
<button
onClick={() => navTo('reshape')}
class={`login-btn ${nav === 'reshape' ? 'highlight' : ''}`}>
Reshape
</button>
<button
onClick={accountClick}
class={`login-btn ${nav === 'account' ? 'highlight' : ''}`}>

View File

@ -41,7 +41,8 @@ function Shop(args) {
<b>Subscriptions</b> grant extra benefits:
<ul>
<li>¤150 per month</li>
<li>More community features in the future including account icons and chat wheel</li>
<li>Account icons</li>
<li>Chat wheel</li>
</ul>
</p>
</div>

View File

@ -180,6 +180,7 @@ function registerEvents(store) {
}
function setAccountInstances(v) {
store.dispatch(actions.setMtxActive(null));
return store.dispatch(actions.setInstances(v));
}