fix: permission tag component locked state (#15928)
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 806 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -132,7 +132,7 @@
|
|||
|
||||
(defn tag
|
||||
[_ _]
|
||||
(fn [{:keys [locked tokens size background-color on-press]
|
||||
(fn [{:keys [locked? tokens size background-color on-press]
|
||||
:or {size 24}}]
|
||||
[base-tag/base-tag
|
||||
{:background-color background-color
|
||||
|
@ -151,7 +151,7 @@
|
|||
32 16
|
||||
24 12)}
|
||||
[icons/icon
|
||||
(if locked
|
||||
(if locked?
|
||||
:i/locked
|
||||
:i/unlocked)
|
||||
{:resize-mode :center
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
[quo/text {:style {:margin-right 4}} "Hold"]
|
||||
[quo/permission-tag
|
||||
{:size 24
|
||||
:locked false
|
||||
:locked? false
|
||||
:tokens [{:id 1
|
||||
:group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}
|
||||
{:id 2 :token-icon (resources/get-mock-image :status-logo)}
|
||||
|
@ -25,7 +25,7 @@
|
|||
:margin-right 4}} "Or"]
|
||||
[quo/permission-tag
|
||||
{:size 24
|
||||
:locked false
|
||||
:locked? false
|
||||
:tokens [{:id 1
|
||||
:group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}
|
||||
{:id 2 :token-icon (resources/get-mock-image :status-logo)}
|
||||
|
|