Skip to content

Commit

Permalink
fix: add external icon to OpenSea button in collectible page
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater authored and mariia-skrypnyk committed Apr 17, 2024
1 parent 8807a63 commit 399a89d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/quo/components/buttons/button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}]])]]]))
14 changes: 9 additions & 5 deletions src/status_im/contexts/wallet/collectible/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
[status-im.contexts.wallet.collectible.style :as style]
[status-im.contexts.wallet.collectible.tabs.view :as tabs]
[utils.i18n :as i18n]
[utils.re-frame :as rf]))
[utils.re-frame :as rf]
[quo.foundations.colors :as colors]))

(defn header
[collectible-name collection-name collection-image-url]
Expand All @@ -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
Expand Down

0 comments on commit 399a89d

Please sign in to comment.