diff --git a/src/components/Grid.tsx b/src/components/konva/Grid.tsx similarity index 87% rename from src/components/Grid.tsx rename to src/components/konva/Grid.tsx index 995206d..2ab410e 100644 --- a/src/components/Grid.tsx +++ b/src/components/konva/Grid.tsx @@ -1,19 +1,19 @@ import { Group, Rect } from "react-konva"; import useImage from "use-image"; -import Vector2 from "../helpers/Vector2"; +import Vector2 from "../../helpers/Vector2"; import { useGrid, useGridPixelSize, useGridOffset, useGridCellPixelSize, -} from "../contexts/GridContext"; +} from "../../contexts/GridContext"; -import squarePatternDark from "../images/SquarePatternDark.png"; -import squarePatternLight from "../images/SquarePatternLight.png"; -import hexPatternDark from "../images/HexPatternDark.png"; -import hexPatternLight from "../images/HexPatternLight.png"; +import squarePatternDark from "../../images/SquarePatternDark.png"; +import squarePatternLight from "../../images/SquarePatternLight.png"; +import hexPatternDark from "../../images/HexPatternDark.png"; +import hexPatternLight from "../../images/HexPatternLight.png"; function Grid({ stroke }: { stroke: "black" | "white" }) { const grid = useGrid(); diff --git a/src/components/map/MapGrid.tsx b/src/components/map/MapGrid.tsx index 6f04e02..a5d5c9a 100644 --- a/src/components/map/MapGrid.tsx +++ b/src/components/map/MapGrid.tsx @@ -7,7 +7,7 @@ import { mapSources as defaultMapSources } from "../../maps"; import { getImageLightness } from "../../helpers/image"; -import Grid from "../Grid"; +import Grid from "../konva/Grid"; import { Map } from "../../types/Map"; function MapGrid({ map }: { map: Map }) { diff --git a/src/components/token/TokenPreview.tsx b/src/components/token/TokenPreview.tsx index 002e778..c44068f 100644 --- a/src/components/token/TokenPreview.tsx +++ b/src/components/token/TokenPreview.tsx @@ -18,7 +18,7 @@ import GridOffIcon from "../../icons/GridOffIcon"; import { tokenSources } from "../../tokens"; -import Grid from "../Grid"; +import Grid from "../konva/Grid"; import { Token } from "../../types/Token"; type TokenPreviewProps = {