diff --git a/src/status_im2/contexts/wallet/events.cljs b/src/status_im2/contexts/wallet/events.cljs index 6198f678a86..162af22da3a 100644 --- a/src/status_im2/contexts/wallet/events.cljs +++ b/src/status_im2/contexts/wallet/events.cljs @@ -163,3 +163,7 @@ :fx [[:dispatch [:navigate-to-within-stack [:wallet-select-asset :wallet-select-address]]]]})) + +(rf/reg-event-fx :wallet/assets-for-account + (fn [{:keys [db]} [account]] + {:db (assoc db :wallet/account-assets {account [temp/token-value-eth]})})) diff --git a/src/status_im2/contexts/wallet/send/select_asset/view.cljs b/src/status_im2/contexts/wallet/send/select_asset/view.cljs index 46b5f4c69ac..d055ea1127e 100644 --- a/src/status_im2/contexts/wallet/send/select_asset/view.cljs +++ b/src/status_im2/contexts/wallet/send/select_asset/view.cljs @@ -7,18 +7,22 @@ [reagent.core :as reagent] [status-im2.contexts.wallet.send.select-asset.style :as style] [utils.i18n :as i18n] - [utils.re-frame :as rf])) + [utils.re-frame :as rf] + [quo.foundations.resources :as quo.resources] + [status-im2.contexts.quo-preview.list-items.token-network :as token-network])) (def tabs-data [{:id :tab/assets :label (i18n/label :t/assets) :accessibility-label :assets-tab} {:id :tab/collectibles :label (i18n/label :t/collectibles) :accessibility-label :collectibles-tab}]) + (defn- asset-component [] - (fn [_ _ _ _] + (fn [token-network _ _ _] (let [_ {:on-press #(js/alert "Not implemented yet") :active-state? false}] - [rn/view]))) + [quo/token-network + token-network]))) (defn- asset-list [] diff --git a/src/status_im2/contexts/wallet/temp.cljs b/src/status_im2/contexts/wallet/temp.cljs index 85f223eca9e..68af27f159c 100644 --- a/src/status_im2/contexts/wallet/temp.cljs +++ b/src/status_im2/contexts/wallet/temp.cljs @@ -1,7 +1,8 @@ (ns status-im2.contexts.wallet.temp (:require [clojure.string :as string] [status-im2.common.resources :as resources] - [status-im2.contexts.wallet.item-types :as types])) + [status-im2.contexts.wallet.item-types :as types] + [quo.foundations.resources :as quo.resources])) (def ens-local-suggestion-saved-address-mock {:type types/saved-address @@ -44,3 +45,17 @@ (let [all-addresses [address-local-suggestion-saved-address-mock address-local-suggestion-mock]] (vec (filter #(string/starts-with? (:address %) substring) all-addresses)))) + +(def networks-list + [{:source (quo.resources/get-network :ethereum)} + {:source (quo.resources/get-network :optimism)} + {:source (quo.resources/get-network :arbitrum)} + {:source (quo.resources/get-network :zksync)} + {:source (quo.resources/get-network :polygon)}]) + +(def token-value-eth + {:token (quo.resources/get-token :eth) + :label "Ethereum" + :token-value "0.00 ETH" + :fiat-value "€0.00" + :networks networks-list})