fix: get rid of `:redef-in-file` warning (#18053)
This commit is contained in:
parent
1e797273b6
commit
3cd302b271
|
@ -66,17 +66,17 @@
|
||||||
text-color)
|
text-color)
|
||||||
label])])
|
label])])
|
||||||
|
|
||||||
(defn tag
|
(defn tag-internal
|
||||||
"opts
|
"opts
|
||||||
{:type :icon/:emoji/:label
|
{:type :icon/:emoji/:label
|
||||||
:label string
|
:label string
|
||||||
:size 32/24
|
:size 32/24
|
||||||
:on-press fn
|
:on-press fn
|
||||||
:blurred? true/false
|
:blurred? true/false
|
||||||
:resource icon/image
|
:resource icon/image
|
||||||
:labelled? true/false
|
:labelled? true/false
|
||||||
:disabled? true/false}
|
:disabled? true/false}
|
||||||
|
|
||||||
opts
|
opts
|
||||||
- `blurred` boolean: use to determine border color if the background is blurred
|
- `blurred` boolean: use to determine border color if the background is blurred
|
||||||
- `type` can be icon or emoji with or without a tag label
|
- `type` can be icon or emoji with or without a tag label
|
||||||
|
@ -106,5 +106,5 @@
|
||||||
:labelled? (if (= type :label) true labelled?)}
|
:labelled? (if (= type :label) true labelled?)}
|
||||||
[tag-resources size type resource icon-color label text-color labelled?]]]))
|
[tag-resources size type resource icon-color label text-color labelled?]]]))
|
||||||
|
|
||||||
(def tag (quo.theme/with-theme tag))
|
(def tag (quo.theme/with-theme tag-internal))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue