fix: add external icon to OpenSea button in collectible page (#19647)

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Brian Sztamfater 2024-04-17 11:58:27 -03:00 committed by GitHub
parent 4134d18cbc
commit d12c05aab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 10 deletions

View File

@ -28,9 +28,9 @@
:theme :light/:dark
only icon
[button {:icon-only? true} :i/close-circle]"
[{:keys [on-press on-long-press disabled? type background size icon-left icon-right icon-top
customization-color accessibility-label icon-only? container-style inner-style
pressed? on-press-in on-press-out allow-multiple-presses?]
[{:keys [on-press on-long-press disabled? type background size icon-left icon-left-color icon-right
icon-right-color icon-top icon-top-color customization-color accessibility-label icon-only?
container-style inner-style pressed? on-press-in on-press-out allow-multiple-presses?]
:or {type :primary
size 40
customization-color (if (= type :primary) :blue nil)}}
@ -94,7 +94,7 @@
[quo.icons/icon icon-top
{:container-style {:margin-bottom 2
:opacity (when disabled? 0.3)}
:color icon-color
:color (or icon-top-color icon-color)
:size icon-size}]])
(when icon-left
[rn/view
@ -103,7 +103,7 @@
:icon-size icon-size
:disabled? disabled?})}
[quo.icons/icon icon-left
{:color icon-color
{:color (or icon-left-color icon-color)
:size icon-size}]])
[rn/view
(cond
@ -130,5 +130,5 @@
:icon-size icon-size
:disabled? disabled?})}
[quo.icons/icon icon-right
{:color icon-color
{:color (or icon-right-color icon-color)
:size icon-size}]])]]]))

View File

@ -1,6 +1,7 @@
(ns status-im.contexts.wallet.collectible.view
(:require
[quo.core :as quo]
[quo.foundations.colors :as colors]
[quo.theme :as quo.theme]
[react-native.core :as rn]
[react-native.svg :as svg]
@ -36,10 +37,13 @@
:icon-left :i/send}
(i18n/label :t/send)]
[quo/button
{:container-style style/opensea-button
:type :outline
:size 40
:icon-left :i/opensea}
{:container-style style/opensea-button
:type :outline
:size 40
:icon-left :i/opensea
:icon-left-color (colors/theme-colors colors/neutral-100 colors/neutral-40)
:icon-right :i/external
:icon-right-color (colors/theme-colors colors/neutral-50 colors/neutral-40)}
(i18n/label :t/opensea)]])
(def tabs-data