-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Wallet: best route UI
- Loading branch information
Showing
10 changed files
with
86 additions
and
16 deletions.
There are no files selected for viewing
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 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,26 @@ | ||
(ns status-im.contexts.wallet.send.routes.style) | ||
|
||
(def routes-container | ||
{:padding-horizontal 20 | ||
:padding-vertical 16 | ||
:width "100%" | ||
:height "100%"}) | ||
|
||
(def routes-header-container | ||
{:flex-direction :row | ||
:justify-content :space-between}) | ||
|
||
(def routes-inner-container | ||
{:margin-top 8 | ||
:flex-direction :row | ||
:align-items :center | ||
:justify-content :space-between}) | ||
|
||
(defn section-label | ||
[margin-left] | ||
{:flex 0.5 | ||
:margin-left margin-left}) | ||
|
||
(def network-link | ||
{:right 6 | ||
:z-index 1}) |
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,32 @@ | ||
(ns status-im.contexts.wallet.send.routes.view | ||
(:require | ||
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.send.routes.style :as style] | ||
[utils.i18n :as i18n])) | ||
|
||
(defn view | ||
[{:keys [amount from-network to-network]}] | ||
[rn/view {:style style/routes-container} | ||
[rn/view {:style style/routes-header-container} | ||
[quo/section-label | ||
{:section (i18n/label :t/from-label) | ||
:container-style (style/section-label 0)}] | ||
[quo/section-label | ||
{:section (i18n/label :t/to-label) | ||
:container-style (style/section-label 64)}]] | ||
[rn/view {:style style/routes-inner-container} | ||
[quo/network-bridge | ||
{:amount amount | ||
:network from-network | ||
:status :default}] | ||
[quo/network-link | ||
{:shape :linear | ||
:source from-network | ||
:destination to-network | ||
:container-style style/network-link}] | ||
[quo/network-bridge | ||
{:amount amount | ||
:network to-network | ||
:status :default | ||
:container-style {:right 12}}]]]) |
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