mirror of
https://github.com/penpot/penpot.git
synced 2025-06-19 19:01:37 +02:00
♻️ Refactor color-input naming
This commit is contained in:
parent
5f558d6fdc
commit
397ada1f78
2 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@
|
|||
(uc/parse-color)
|
||||
(uc/prepend-hash)))
|
||||
|
||||
(mf/defc color-input
|
||||
(mf/defc color-input*
|
||||
{::mf/wrap-props false
|
||||
::mf/forward-ref true}
|
||||
[props external-ref]
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[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.context :as ctx]
|
||||
[app.main.ui.formats :as fmt]
|
||||
|
@ -193,13 +193,13 @@
|
|||
:else
|
||||
[:*
|
||||
[:div.color-info
|
||||
[:> color-input {:value (if (uc/multiple? color)
|
||||
""
|
||||
(-> color :color uc/remove-hash))
|
||||
:placeholder (tr "settings.multiple")
|
||||
:on-focus on-focus
|
||||
:on-blur on-blur
|
||||
:on-change handle-value-change}]]
|
||||
[:> color-input* {:value (if (uc/multiple? color)
|
||||
""
|
||||
(-> color :color uc/remove-hash))
|
||||
:placeholder (tr "settings.multiple")
|
||||
:on-focus on-focus
|
||||
:on-blur on-blur
|
||||
:on-change handle-value-change}]]
|
||||
|
||||
(when (and (not disable-opacity)
|
||||
(not (:gradient color)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue