Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Sep 7, 2024
1 parent c850899 commit b1d2206
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/components/atoms/mock-cards/atlas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const CardAtlas = ({
}, [isPressed]);

const show = preview && isHovering;
console.log(img);
return (
<Box
position="relative"
Expand Down
7 changes: 0 additions & 7 deletions src/components/organisms/GameBoard/useHandleDrag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,15 @@ export const useHandleDrag = ({
(over?.id as string)?.split("-")[1],
10, // base 10 number
);
console.log("why nan", destinationIndex, over.id);

console.log("indexes", { originIndex, destinationIndex });

// Remove card from the origin area
const updatedGrid = [...gridItems];

console.log("remove card from original grid", updatedGrid);

const [movedCard] = updatedGrid[originIndex].splice(
active?.data?.current?.index,
1,
);

console.log("card to move", movedCard);

// Place card in the destination area
updatedGrid[destinationIndex]?.push(movedCard);

Expand Down
5 changes: 0 additions & 5 deletions src/pages/game.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { GameBoard } from "@/components/organisms/GameBoard";
import { SorceryCard } from "@/types/card";
import { useState } from "react";

Expand Down Expand Up @@ -30,8 +29,4 @@ export default function GamePage() {
} as GameCard,
],
]);

console.log({ gridItems });

return <GameBoard gridItems={gridItems} setGridItems={setGridItems} />;
}
1 change: 0 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const body = `calc(100vh - ${nav} - ${footer})`;

export default function Home() {
const [dropped, setIsDropped] = useState(false);
console.info(dropped);

function handleDragEnd(event: DragEndEvent) {
if (event.over && event.over.id === "droppable") {
Expand Down

0 comments on commit b1d2206

Please sign in to comment.