'Send' button is shown for watch-only collectibles and can navigate to the 'send' flow #19743 (#19918)
This commit is contained in:
parent
8ad58bb364
commit
2c5cc6cd08
|
@ -28,15 +28,16 @@
|
||||||
collection-name]]])
|
collection-name]]])
|
||||||
|
|
||||||
(defn cta-buttons
|
(defn cta-buttons
|
||||||
[chain-id token-id contract-address]
|
[{:keys [chain-id token-id contract-address watch-only?]}]
|
||||||
(let [theme (quo.theme/use-theme)]
|
(let [theme (quo.theme/use-theme)]
|
||||||
[rn/view {:style style/buttons-container}
|
[rn/view {:style style/buttons-container}
|
||||||
[quo/button
|
(when-not watch-only?
|
||||||
{:container-style style/send-button
|
[quo/button
|
||||||
:type :outline
|
{:container-style style/send-button
|
||||||
:size 40
|
:type :outline
|
||||||
:icon-left :i/send}
|
:size 40
|
||||||
(i18n/label :t/send)]
|
:icon-left :i/send}
|
||||||
|
(i18n/label :t/send)])
|
||||||
[quo/button
|
[quo/button
|
||||||
{:container-style style/opensea-button
|
{:container-style style/opensea-button
|
||||||
:type :outline
|
:type :outline
|
||||||
|
@ -66,7 +67,7 @@
|
||||||
(let [theme (quo.theme/use-theme)
|
(let [theme (quo.theme/use-theme)
|
||||||
collectible (rf/sub [:wallet/last-collectible-details])
|
collectible (rf/sub [:wallet/last-collectible-details])
|
||||||
animation-shared-element-id (rf/sub [:animation-shared-element-id])
|
animation-shared-element-id (rf/sub [:animation-shared-element-id])
|
||||||
wallet-address (rf/sub [:wallet/current-viewing-account-address])
|
collectible-owner (rf/sub [:wallet/last-collectible-details-owner])
|
||||||
{:keys [id
|
{:keys [id
|
||||||
preview-url
|
preview-url
|
||||||
collection-data
|
collection-data
|
||||||
|
@ -90,7 +91,7 @@
|
||||||
:header collectible-name
|
:header collectible-name
|
||||||
:description collection-name}
|
:description collection-name}
|
||||||
total-owned (utils/total-owned-collectible (:ownership collectible)
|
total-owned (utils/total-owned-collectible (:ownership collectible)
|
||||||
wallet-address)]
|
(:address collectible-owner))]
|
||||||
(rn/use-unmount #(rf/dispatch [:wallet/clear-last-collectible-details]))
|
(rn/use-unmount #(rf/dispatch [:wallet/clear-last-collectible-details]))
|
||||||
[scroll-page/scroll-page
|
[scroll-page/scroll-page
|
||||||
{:navigate-back? true
|
{:navigate-back? true
|
||||||
|
@ -128,7 +129,11 @@
|
||||||
{:name collectible-name
|
{:name collectible-name
|
||||||
:image preview-uri}])}])}])))}]
|
:image preview-uri}])}])}])))}]
|
||||||
[header collectible-name collection-name collection-image]
|
[header collectible-name collection-name collection-image]
|
||||||
[cta-buttons chain-id token-id contract-address]
|
[cta-buttons
|
||||||
|
{:chain-id chain-id
|
||||||
|
:token-id token-id
|
||||||
|
:contract-address contract-address
|
||||||
|
:watch-only? (:watch-only? collectible-owner)}]
|
||||||
[quo/tabs
|
[quo/tabs
|
||||||
{:size 32
|
{:size 32
|
||||||
:style style/tabs
|
:style style/tabs
|
||||||
|
|
Loading…
Reference in New Issue