♻️ Refactor color-input naming

This commit is contained in:
Andrey Antukh 2023-07-20 11:12:01 +02:00
parent 5f558d6fdc
commit 397ada1f78
2 changed files with 9 additions and 9 deletions

View file

@ -23,7 +23,7 @@
(uc/parse-color) (uc/parse-color)
(uc/prepend-hash))) (uc/prepend-hash)))
(mf/defc color-input (mf/defc color-input*
{::mf/wrap-props false {::mf/wrap-props false
::mf/forward-ref true} ::mf/forward-ref true}
[props external-ref] [props external-ref]

View file

@ -14,7 +14,7 @@
[app.main.refs :as refs] [app.main.refs :as refs]
[app.main.store :as st] [app.main.store :as st]
[app.main.ui.components.color-bullet :as cb] [app.main.ui.components.color-bullet :as cb]
[app.main.ui.components.color-input :refer [color-input]] [app.main.ui.components.color-input :refer [color-input*]]
[app.main.ui.components.numeric-input :refer [numeric-input*]] [app.main.ui.components.numeric-input :refer [numeric-input*]]
[app.main.ui.context :as ctx] [app.main.ui.context :as ctx]
[app.main.ui.formats :as fmt] [app.main.ui.formats :as fmt]
@ -193,13 +193,13 @@
:else :else
[:* [:*
[:div.color-info [:div.color-info
[:> color-input {:value (if (uc/multiple? color) [:> color-input* {:value (if (uc/multiple? color)
"" ""
(-> color :color uc/remove-hash)) (-> color :color uc/remove-hash))
:placeholder (tr "settings.multiple") :placeholder (tr "settings.multiple")
:on-focus on-focus :on-focus on-focus
:on-blur on-blur :on-blur on-blur
:on-change handle-value-change}]] :on-change handle-value-change}]]
(when (and (not disable-opacity) (when (and (not disable-opacity)
(not (:gradient color))) (not (:gradient color)))