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.setItemEquip(null));
|
||||||
dispatch(actions.setItemUnequip([]));
|
dispatch(actions.setItemUnequip([]));
|
||||||
dispatch(actions.setVboxHighlight([]));
|
dispatch(actions.setVboxHighlight([]));
|
||||||
|
dispatch(actions.setMtxActive(null));
|
||||||
return dispatch(actions.setNav(place));
|
return dispatch(actions.setNav(place));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,16 +83,16 @@ function Header(args) {
|
|||||||
class={`login-btn ${nav === 'play' ? 'highlight' : ''}`}>
|
class={`login-btn ${nav === 'play' ? 'highlight' : ''}`}>
|
||||||
Play
|
Play
|
||||||
</button>
|
</button>
|
||||||
<button
|
|
||||||
onClick={() => navTo('reshape')}
|
|
||||||
class={`login-btn ${nav === 'reshape' ? 'highlight' : ''}`}>
|
|
||||||
Reshape
|
|
||||||
</button>
|
|
||||||
<button
|
<button
|
||||||
onClick={() => navTo('shop')}
|
onClick={() => navTo('shop')}
|
||||||
class={`login-btn ${nav === 'shop' ? 'highlight' : ''}`}>
|
class={`login-btn ${nav === 'shop' ? 'highlight' : ''}`}>
|
||||||
Shop
|
Shop
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => navTo('reshape')}
|
||||||
|
class={`login-btn ${nav === 'reshape' ? 'highlight' : ''}`}>
|
||||||
|
Reshape
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={accountClick}
|
onClick={accountClick}
|
||||||
class={`login-btn ${nav === 'account' ? 'highlight' : ''}`}>
|
class={`login-btn ${nav === 'account' ? 'highlight' : ''}`}>
|
||||||
|
|||||||
@ -41,7 +41,8 @@ function Shop(args) {
|
|||||||
<b>Subscriptions</b> grant extra benefits:
|
<b>Subscriptions</b> grant extra benefits:
|
||||||
<ul>
|
<ul>
|
||||||
<li>¤150 per month</li>
|
<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>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -180,6 +180,7 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setAccountInstances(v) {
|
function setAccountInstances(v) {
|
||||||
|
store.dispatch(actions.setMtxActive(null));
|
||||||
return store.dispatch(actions.setInstances(v));
|
return store.dispatch(actions.setInstances(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user