1
0

Move house rules button to the end of the actions list

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-03-26 11:05:39 -07:00
parent 0a789855d1
commit 01275059c6

View File

@ -181,8 +181,6 @@ const Actions = ({
<Button disabled={color ? false : true} <Button disabled={color ? false : true}
onClick={newTableClick}>New table</Button> onClick={newTableClick}>New table</Button>
</> } </> }
{ name && color && <Button disabled={color ? false : true}
onClick={houseRulesClick}>House Rules</Button> }
{ name && !color && <Button disabled={color ? true : false} onClick={changeNameClick}>Change name</Button> } { name && !color && <Button disabled={color ? true : false} onClick={changeNameClick}>Change name</Button> }
{ name && !inLobby && <> { name && !inLobby && <>
<Button disabled={ <Button disabled={
@ -194,6 +192,8 @@ const Actions = ({
<Button disabled={placeRoad || robberActions || !isTurn || !hasRolled || !haveResources} onClick={tradeClick}>Trade</Button> <Button disabled={placeRoad || robberActions || !isTurn || !hasRolled || !haveResources} onClick={tradeClick}>Trade</Button>
<Button disabled={placeRoad || robberActions || !isTurn || !hasRolled || !haveResources} onClick={buildClicked}>Build</Button> <Button disabled={placeRoad || robberActions || !isTurn || !hasRolled || !haveResources} onClick={buildClicked}>Build</Button>
<Button disabled={!(turn && turn.roll === 7 && priv && priv.mustDiscard > 0)}onClick={discardClick}>Discard</Button> <Button disabled={!(turn && turn.roll === 7 && priv && priv.mustDiscard > 0)}onClick={discardClick}>Discard</Button>
{ name && color && <Button disabled={color ? false : true}
onClick={houseRulesClick}>House Rules</Button> }
<Button disabled={placeRoad || robberActions || !isTurn || !hasRolled} onClick={passClick}>Done</Button> <Button disabled={placeRoad || robberActions || !isTurn || !hasRolled} onClick={passClick}>Done</Button>
</> } </> }
{ /* inLobby && { /* inLobby &&