Skip to content

Commit

Permalink
Feat: added deselect all elements action
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Apr 5, 2024
1 parent d3e8e1f commit aa3dccf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { panDown, panLeft, panRight, panUp } from "@/components/workspace/zoom";
import { store } from "@/store";
import { deselectElement } from "@/store/reducers/editor";
import { clearElements, deselectElement } from "@/store/reducers/editor";

export const actions = {
deselectElement: (elementId: string) => store.dispatch(deselectElement(elementId)),
deselectAllElements: () => store.dispatch(clearElements(false)),
panLeft,
panDown,
panRight,
Expand Down

0 comments on commit aa3dccf

Please sign in to comment.