Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Mar 2, 2024
1 parent 78facbc commit 87b77f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/handlers.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns renderer.handlers
(:require
[re-frame.core :as rf]
[renderer.element.handlers :as element-h]))
[renderer.element.handlers :as element.h]))

(defn set-state
[db state]
Expand All @@ -22,7 +22,7 @@
(fn [db file]
(case (.-type file)
"image/png"
(element-h/add db {:type :element
(element.h/add db {:type :element
:tag :image
:attrs {:x (first adjusted-pointer-pos)
:y (second adjusted-pointer-pos)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/toolbar/status.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

(defn a11y-select
[]
(let [filter @(rf/subscribe [:document/filter])]
(when-let [filter @(rf/subscribe [:document/filter])]
[:> Select/Root {:value (name filter)
:onValueChange #(rf/dispatch [:document/set-filter %])}
[:> Select/Trigger
Expand Down

0 comments on commit 87b77f4

Please sign in to comment.