mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🔥 Remove unused code.
This commit is contained in:
parent
1bde48730c
commit
65b579c6b6
3 changed files with 1 additions and 10 deletions
|
@ -121,12 +121,6 @@
|
||||||
(def workspace-snap-data
|
(def workspace-snap-data
|
||||||
(l/derived :workspace-snap-data st/state))
|
(l/derived :workspace-snap-data st/state))
|
||||||
|
|
||||||
;; TODO: BROKEN & TO BE REMOVED
|
|
||||||
(def workspace-data
|
|
||||||
(-> #(let [page-id (get-in % [:workspace-page :id])]
|
|
||||||
(get-in % [:workspace-data page-id]))
|
|
||||||
(l/derived st/state)))
|
|
||||||
|
|
||||||
(def workspace-page
|
(def workspace-page
|
||||||
(l/derived (fn [state]
|
(l/derived (fn [state]
|
||||||
(let [page-id (:current-page-id state)
|
(let [page-id (:current-page-id state)
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
(let [selected (mf/deref refs/selected-shapes)
|
(let [selected (mf/deref refs/selected-shapes)
|
||||||
|
|
||||||
;; don't need to watch objects, only read the value
|
;; don't need to watch objects, only read the value
|
||||||
objects (:objects (deref refs/workspace-data))
|
objects (deref refs/workspace-page-objects)
|
||||||
|
|
||||||
disabled (cond
|
disabled (cond
|
||||||
(empty? selected) true
|
(empty? selected) true
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
[app.util.i18n :as i18n :refer [t]]
|
[app.util.i18n :as i18n :refer [t]]
|
||||||
[app.main.ui.workspace.sidebar.options.rows.color-row :refer [color-row]]))
|
[app.main.ui.workspace.sidebar.options.rows.color-row :refer [color-row]]))
|
||||||
|
|
||||||
(def options-iref
|
|
||||||
(l/derived :options refs/workspace-data))
|
|
||||||
|
|
||||||
(defn use-change-color [page-id]
|
(defn use-change-color [page-id]
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps page-id)
|
(mf/deps page-id)
|
||||||
|
|
Loading…
Reference in a new issue