mirror of
https://github.com/penpot/penpot.git
synced 2025-06-19 18:51:38 +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/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]
|
||||||
|
|
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue