From 1043eac3ab2f0f9b54e664548dd2e5dea8349cb6 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 22 Jul 2021 16:05:54 +1000 Subject: [PATCH] Change default select tool to rect --- src/components/controls/SelectToolSettings.tsx | 12 ++++++------ src/components/map/MapControls.tsx | 2 +- src/icons/{SelecToolIcon.tsx => SelectToolIcon.tsx} | 0 src/settings.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename src/icons/{SelecToolIcon.tsx => SelectToolIcon.tsx} (100%) diff --git a/src/components/controls/SelectToolSettings.tsx b/src/components/controls/SelectToolSettings.tsx index 9d7a8bb..25c367b 100644 --- a/src/components/controls/SelectToolSettings.tsx +++ b/src/components/controls/SelectToolSettings.tsx @@ -34,18 +34,18 @@ function SelectToolSettings({ useKeyboard(handleKeyDown); const tools = [ - { - id: "path", - title: "Lasso Selection (L)", - isSelected: settings.type === "path", - icon: , - }, { id: "rectangle", title: "Rectangle Selection (R)", isSelected: settings.type === "rectangle", icon: , }, + { + id: "path", + title: "Lasso Selection (L)", + isSelected: settings.type === "path", + icon: , + }, ]; return ( diff --git a/src/components/map/MapControls.tsx b/src/components/map/MapControls.tsx index 83a9ab4..29add17 100644 --- a/src/components/map/MapControls.tsx +++ b/src/components/map/MapControls.tsx @@ -20,7 +20,7 @@ import PointerToolIcon from "../../icons/PointerToolIcon"; import FullScreenIcon from "../../icons/FullScreenIcon"; import FullScreenExitIcon from "../../icons/FullScreenExitIcon"; import NoteToolIcon from "../../icons/NoteToolIcon"; -import SelectToolIcon from "../../icons/SelecToolIcon"; +import SelectToolIcon from "../../icons/SelectToolIcon"; import UndoButton from "../controls/shared/UndoButton"; import RedoButton from "../controls/shared/RedoButton"; diff --git a/src/icons/SelecToolIcon.tsx b/src/icons/SelectToolIcon.tsx similarity index 100% rename from src/icons/SelecToolIcon.tsx rename to src/icons/SelectToolIcon.tsx diff --git a/src/settings.ts b/src/settings.ts index 0ab5258..5185610 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -67,7 +67,7 @@ function loadVersions(settings: Settings) { // v1.10.0 - Add select tool settings.version(8, (prev: any) => ({ ...prev, - select: { type: "path" }, + select: { type: "rectangle" }, })); }