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 { useTextures } from "@/hooks/useTextures";
|
||||
import { isInSelection } from "@/utils/selection";
|
||||
|
||||
import Blocks from "./Blocks";
|
||||
import Cursor from "./Cursor";
|
||||
|
|
@ -20,8 +21,7 @@ import CanvasBorder from "./CanvasBorder";
|
|||
|
||||
import CursorInformation from "./information/Cursor";
|
||||
import CanvasInformation from "./information/Canvas";
|
||||
import SelectionToolbar from "./SelectionToolbar";
|
||||
import { isInSelection } from "@/utils/selection";
|
||||
import SelectionBar from "./SelectionBar";
|
||||
|
||||
// Set scale mode to NEAREST
|
||||
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST;
|
||||
|
|
@ -527,7 +527,7 @@ function Canvas() {
|
|||
<CursorInformation mouseCoords={mouseCoords} />
|
||||
<CanvasInformation />
|
||||
|
||||
<SelectionToolbar />
|
||||
<SelectionBar />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { SelectionContext } from "@/context/Selection";
|
|||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
function SelectionToolbar() {
|
||||
function SelectionBar() {
|
||||
const { blocks, setBlocks } = useContext(CanvasContext);
|
||||
const { layerBlocks, setLayerBlocks } = useContext(SelectionContext);
|
||||
|
||||
|
|
@ -42,4 +42,4 @@ function SelectionToolbar() {
|
|||
);
|
||||
}
|
||||
|
||||
export default SelectionToolbar;
|
||||
export default SelectionBar;
|
||||
Loading…
Reference in a new issue