refactor: rename SelectionToolbar component to SelectionBar
This commit is contained in:
parent
f3e881fcec
commit
f17b2b9f42
2 changed files with 5 additions and 5 deletions
|
|
@ -11,6 +11,7 @@ import { ThemeContext } from "@/context/Theme";
|
||||||
import { ToolContext } from "@/context/Tool";
|
import { ToolContext } from "@/context/Tool";
|
||||||
|
|
||||||
import { useTextures } from "@/hooks/useTextures";
|
import { useTextures } from "@/hooks/useTextures";
|
||||||
|
import { isInSelection } from "@/utils/selection";
|
||||||
|
|
||||||
import Blocks from "./Blocks";
|
import Blocks from "./Blocks";
|
||||||
import Cursor from "./Cursor";
|
import Cursor from "./Cursor";
|
||||||
|
|
@ -20,8 +21,7 @@ import CanvasBorder from "./CanvasBorder";
|
||||||
|
|
||||||
import CursorInformation from "./information/Cursor";
|
import CursorInformation from "./information/Cursor";
|
||||||
import CanvasInformation from "./information/Canvas";
|
import CanvasInformation from "./information/Canvas";
|
||||||
import SelectionToolbar from "./SelectionToolbar";
|
import SelectionBar from "./SelectionBar";
|
||||||
import { isInSelection } from "@/utils/selection";
|
|
||||||
|
|
||||||
// Set scale mode to NEAREST
|
// Set scale mode to NEAREST
|
||||||
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST;
|
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST;
|
||||||
|
|
@ -527,7 +527,7 @@ function Canvas() {
|
||||||
<CursorInformation mouseCoords={mouseCoords} />
|
<CursorInformation mouseCoords={mouseCoords} />
|
||||||
<CanvasInformation />
|
<CanvasInformation />
|
||||||
|
|
||||||
<SelectionToolbar />
|
<SelectionBar />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { SelectionContext } from "@/context/Selection";
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
|
||||||
function SelectionToolbar() {
|
function SelectionBar() {
|
||||||
const { blocks, setBlocks } = useContext(CanvasContext);
|
const { blocks, setBlocks } = useContext(CanvasContext);
|
||||||
const { layerBlocks, setLayerBlocks } = useContext(SelectionContext);
|
const { layerBlocks, setLayerBlocks } = useContext(SelectionContext);
|
||||||
|
|
||||||
|
|
@ -42,4 +42,4 @@ function SelectionToolbar() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SelectionToolbar;
|
export default SelectionBar;
|
||||||
Loading…
Reference in a new issue