fix: permission tag component locked state (#15928)

This commit is contained in:
Ajay Sivan 2023-05-19 02:51:30 -07:00 committed by GitHub
parent b4bb9c50fa
commit adc458d8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 784 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 745 B

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -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

View File

@ -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)}