diff --git a/src/status_im/ui/screens/wallet/collectibles/cryptokitties/views.cljs b/src/status_im/ui/screens/wallet/collectibles/cryptokitties/views.cljs index 3b71f2995b..4c30771781 100644 --- a/src/status_im/ui/screens/wallet/collectibles/cryptokitties/views.cljs +++ b/src/status_im/ui/screens/wallet/collectibles/cryptokitties/views.cljs @@ -24,5 +24,5 @@ :icon :icons/address :icon-opts {:color colors/blue} :accessibility-label :open-collectible-button - :on-press #(re-frame/dispatch [:open-browser + :on-press #(re-frame/dispatch [:open-collectible-in-browser {:url (str "https://www.cryptokitties.co/kitty/" id)}])}]]) \ No newline at end of file diff --git a/src/status_im/ui/screens/wallet/collectibles/cryptostrikers/views.cljs b/src/status_im/ui/screens/wallet/collectibles/cryptostrikers/views.cljs index 7552e6c9e2..61b64920d3 100644 --- a/src/status_im/ui/screens/wallet/collectibles/cryptostrikers/views.cljs +++ b/src/status_im/ui/screens/wallet/collectibles/cryptostrikers/views.cljs @@ -24,4 +24,4 @@ :icon :icons/address :icon-opts {:color colors/blue} :accessibility-label :open-collectible-button - :on-press #(re-frame/dispatch [:open-browser {:url external_url}])}]]) + :on-press #(re-frame/dispatch [:open-collectible-in-browser {:url external_url}])}]]) diff --git a/src/status_im/ui/screens/wallet/collectibles/etheremon/views.cljs b/src/status_im/ui/screens/wallet/collectibles/etheremon/views.cljs index c1a09a034b..8a871ce020 100644 --- a/src/status_im/ui/screens/wallet/collectibles/etheremon/views.cljs +++ b/src/status_im/ui/screens/wallet/collectibles/etheremon/views.cljs @@ -23,5 +23,5 @@ :icon :icons/address :icon-opts {:color colors/blue} :accessibility-label :open-collectible-button - :on-press #(re-frame/dispatch [:open-browser + :on-press #(re-frame/dispatch [:open-collectible-in-browser {:url (str "https://www.etheremon.com/#/mons/" class_id)}])}]]) diff --git a/src/status_im/ui/screens/wallet/collectibles/events.cljs b/src/status_im/ui/screens/wallet/collectibles/events.cljs index e7d1d797e4..02983c55f3 100644 --- a/src/status_im/ui/screens/wallet/collectibles/events.cljs +++ b/src/status_im/ui/screens/wallet/collectibles/events.cljs @@ -58,3 +58,9 @@ [re-frame/trim-v] (fn [{db :db} [_]] {:db db})) + +(handlers/register-handler-fx + :open-collectible-in-browser + [re-frame/trim-v] + (fn [_ [data]] + {:dispatch [:open-browser data]})) \ No newline at end of file diff --git a/src/status_im/utils/mixpanel_events.cljs b/src/status_im/utils/mixpanel_events.cljs index 0bf2e0a1f6..74073e9bd9 100644 --- a/src/status_im/utils/mixpanel_events.cljs +++ b/src/status_im/utils/mixpanel_events.cljs @@ -146,6 +146,12 @@ {:label "Tap" :trigger [:send-transaction-message] :properties {:target :wallet-transaction-sent}} + {:label "Tap" + :trigger [:navigate-to :collectibles-list] + :properties {:target :collectibles-list}} + {:label "Tap" + :trigger [:open-collectible-in-browser] + :properties {:target :open-collectible-in-browser}} ;;Profile {:label "Tap"