From 9873c068e800666b60bac3df4baf9548dc4a7a82 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 24 Jan 2025 13:21:53 +0000 Subject: [PATCH] refactor: rename component SelectionBox to Selection --- src/components/canvas/Canvas.tsx | 4 ++-- src/components/canvas/{SelectionBox.tsx => Selection.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/components/canvas/{SelectionBox.tsx => Selection.tsx} (94%) diff --git a/src/components/canvas/Canvas.tsx b/src/components/canvas/Canvas.tsx index fb4268b..77a66d1 100644 --- a/src/components/canvas/Canvas.tsx +++ b/src/components/canvas/Canvas.tsx @@ -13,7 +13,7 @@ import { useTextures } from "@/hooks/useTextures"; import Blocks from "./Blocks"; import Cursor from "./Cursor"; -import SelectionBox from "./SelectionBox"; +import Selection from "./Selection"; import Grid from "./Grid"; import CanvasBorder from "./CanvasBorder"; @@ -489,7 +489,7 @@ function Canvas() { {settings.canvasBorder && } - + {settings.grid && ( diff --git a/src/components/canvas/SelectionBox.tsx b/src/components/canvas/Selection.tsx similarity index 94% rename from src/components/canvas/SelectionBox.tsx rename to src/components/canvas/Selection.tsx index c5540d3..73f835c 100644 --- a/src/components/canvas/SelectionBox.tsx +++ b/src/components/canvas/Selection.tsx @@ -12,7 +12,7 @@ interface Props { const shader = new DashLineShader({ dash: 8, gap: 5 }); -function SelectionBox({ selection, coords, scale, isDark }: Props) { +function Selection({ selection, coords, scale, isDark }: Props) { const app = useApp(); const selectionRef = useRef(); @@ -70,4 +70,4 @@ function SelectionBox({ selection, coords, scale, isDark }: Props) { return null; } -export default SelectionBox; +export default Selection;