-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into jc/scan-screen
- Loading branch information
Showing
23 changed files
with
108 additions
and
131 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
(ns status-im.contexts.wallet.sheets.buy-token.view | ||
(:require [quo.core :as quo] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.common.temp :as temp] | ||
[status-im.contexts.wallet.sheets.buy-token.style :as style] | ||
[utils.i18n :as i18n])) | ||
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
(defn- crypto-on-ramp-item | ||
[{:keys [name description fees logo-url site-url]}] | ||
[quo/settings-item | ||
{:title name | ||
:description :text | ||
:description-props {:text description} | ||
:tag :context | ||
:tag-props {:icon :i/fees | ||
:context fees} | ||
:action :arrow | ||
:action-props {:alignment :flex-start | ||
:icon :i/external} | ||
:image :icon-avatar | ||
:image-props {:icon logo-url} | ||
:on-press #(rn/open-url site-url)}]) | ||
|
||
(defn view | ||
[] | ||
[:<> | ||
[quo/drawer-top {:title (i18n/label :t/buy-tokens)}] | ||
[rn/flat-list | ||
{:data temp/buy-tokens-list | ||
:style style/list-container | ||
:render-fn quo/settings-item}]]) | ||
(rn/use-mount (fn [] | ||
(rf/dispatch [:wallet/get-crypto-on-ramps]))) | ||
(let [crypto-on-ramps (rf/sub [:wallet/crypto-on-ramps])] | ||
[:<> | ||
[quo/drawer-top {:title (i18n/label :t/buy-assets)}] | ||
[rn/flat-list | ||
{:data crypto-on-ramps | ||
:style style/list-container | ||
:render-fn crypto-on-ramp-item}]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(ns status-im.subs.wallet.buy | ||
(:require [re-frame.core :as rf])) | ||
|
||
(rf/reg-sub | ||
:wallet/crypto-on-ramps | ||
:<- [:wallet] | ||
:-> :crypto-on-ramps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters