Skip to content

Commit

Permalink
relearned the magic of the z index
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-atack committed Oct 20, 2021
1 parent 84bcd1e commit bb141fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const AttackAddMove = () => {

return (
<Wrapper>
<button onClick={() => attackButtonHandler}>ATTACK</button>
<button onClick={() => addMoveButtonHandler}>ADD MOVE</button>
<button onClick={() => attackButtonHandler()}>ATTACK</button>
<button onClick={() => addMoveButtonHandler()}>ADD MOVE</button>
</Wrapper>
)
};
Expand All @@ -33,6 +33,7 @@ const Wrapper = styled.div`
width: 256px;
border: 1px solid black;
border-radius: 8px;
z-index: 1000;
`

export default AttackAddMove;
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const CombatUi = ({turn, setEnemyAttackRadius}) => {
const [playerHype, setPlayerHype] = useRecoilState(combatState.playerHype);
const [playerAttackRadius, setPlayerAttackRadius] = useRecoilState(combatState.playerAttackRadius);
const [playerMoveOptions, setPlayerMoveOptions] = useRecoilState(combatState.playerMoveOptions);
const [playerAttackSelecting, setPlayerAttackSelecting] = useRecoilState(combatState.playerAttackSelecting);
const playerSkills = useRecoilValue(combatState.playerSkills);
const playerCoords = useRecoilValue(combatState.playerCoords);
const baddieCoords = useRecoilValue(combatState.baddieCoords);
Expand Down

0 comments on commit bb141fb

Please sign in to comment.