FIX: Addresses for permissions info button bg color (#18855)

This commit is contained in:
Ajay Sivan 2024-02-16 19:38:05 +05:30 committed by GitHub
parent a33e7f2e90
commit b27f323dd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -137,7 +137,8 @@
:description description}]))
(defn- right-icon
[{:keys [theme type on-button-press on-button-long-press button-disabled? button-icon]}]
[{:keys [theme type on-button-press on-button-long-press button-disabled? button-icon button-type]
:or {button-type :primary}}]
(cond
(= :info type)
[icons/icon
@ -153,7 +154,7 @@
:on-press on-button-press
:on-long-press on-button-long-press
:disabled? button-disabled?
:type :primary
:type button-type
:size 24
:icon-only? true}
button-icon]))
@ -182,7 +183,7 @@
(defn- view-internal
[{:keys [title title-icon type theme description blur? community-name community-logo button-icon
account-name emoji context-tag-type
account-name emoji context-tag-type button-type
on-button-press
on-button-long-press
button-disabled? account-avatar-emoji account-avatar-type customization-color icon-avatar
@ -221,6 +222,7 @@
[right-icon
{:theme theme
:type type
:button-type button-type
:on-button-press on-button-press
:on-button-long-press on-button-long-press
:button-disabled? button-disabled?

View File

@ -69,6 +69,7 @@
:context-tag-type :community
:community-name name
:button-icon :i/info
:button-type :grey
:on-button-press not-implemented/alert
:community-logo (get-in images [:thumbnail :uri])
:customization-color color}]