clear mtxActive on nav and if you join game. put shop before reshape
This commit is contained in:
parent
a304f003d0
commit
56f3647025
@ -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' : ''}`}>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -180,6 +180,7 @@ function registerEvents(store) {
|
||||
}
|
||||
|
||||
function setAccountInstances(v) {
|
||||
store.dispatch(actions.setMtxActive(null));
|
||||
return store.dispatch(actions.setInstances(v));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user