Skip to content

Commit

Permalink
Merge branch 'main' into skelly/deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
SkellyBG authored Dec 9, 2023
2 parents 79553be + 2913622 commit 8b9c6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/components/GridBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const GridBoard = () => {
setClickedPiece({ row, col });
};

const handldGridHexClick = ({ row, col }: Point) => {
const handleGridHexClick = ({ row, col }: Point) => {
if (clickedPiece === null) return;
const newPieceCoordinates = [...pieceCoordinates];
const clickedPieceIndex = newPieceCoordinates.findIndex(
Expand All @@ -41,9 +41,7 @@ const GridBoard = () => {
if (clickedPieceIndex !== -1) {
newPieceCoordinates.splice(clickedPieceIndex, 1);
}
console.log(newPieceCoordinates);
newPieceCoordinates.push({ row, col });
console.log(newPieceCoordinates);

setPieceCoordinates(newPieceCoordinates);
setClickedPiece(null);
Expand Down Expand Up @@ -71,7 +69,7 @@ const GridBoard = () => {
<GridHex
row={coordinate.row}
col={coordinate.col}
handleClick={handldGridHexClick}
handleClick={handleGridHexClick}
clickedPiece={clickedPiece}
/>
))}
Expand Down
7 changes: 2 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@
ejs "^3.1.9"
shell-quote "^1.8.1"
yargs "^17.7.2"

"@humanwhocodes/config-array@^0.11.13":
version "0.11.13"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297"
Expand Down Expand Up @@ -1428,7 +1427,6 @@ diff@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40"
integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==

doctrine@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
Expand All @@ -1449,7 +1447,6 @@ ejs@^3.1.9:
integrity sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==
dependencies:
jake "^10.8.5"

electron-to-chromium@^1.4.535:
version "1.4.592"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.592.tgz#1ffd49ba3da3da3077ea20014b066c910d50c913"
Expand Down Expand Up @@ -2359,7 +2356,7 @@ jake@^10.8.5:
chalk "^4.0.2"
filelist "^1.0.4"
minimatch "^3.1.2"

jest-changed-files@^29.7.0:
version "29.7.0"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a"
Expand Down Expand Up @@ -3379,7 +3376,7 @@ shell-quote@^1.8.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680"
integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==

side-channel@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
Expand Down

0 comments on commit 8b9c6bc

Please sign in to comment.