-
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.
chore: add outline for transacation-progress page
- Loading branch information
Showing
11 changed files
with
191 additions
and
111 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
5 changes: 5 additions & 0 deletions
5
src/status_im2/contexts/wallet/send/transaction_progress/style.cljs
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,5 @@ | ||
(ns status-im2.contexts.wallet.send.transaction-progress.style) | ||
|
||
(def content-container | ||
{:flex 1 | ||
:margin-horizontal 20}) |
55 changes: 55 additions & 0 deletions
55
src/status_im2/contexts/wallet/send/transaction_progress/view.cljs
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,55 @@ | ||
(ns status-im2.contexts.wallet.send.transaction-progress.view | ||
(:require | ||
[quo.core :as quo] | ||
[quo.theme :as quo.theme] | ||
[react-native.core :as rn] | ||
[react-native.safe-area :as safe-area] | ||
[reagent.core :as reagent] | ||
[status-im2.common.floating-button-page.view :as floating-button-page] | ||
[status-im2.common.resources :as resources] | ||
[status-im2.contexts.wallet.send.transaction-progress.style :as style] | ||
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
(defn titles | ||
[status] | ||
(case status | ||
:sending (i18n/label :t/sending-with-elipsis) | ||
:confirmed (i18n/label :t/transaction-confirmed) | ||
:finalised (i18n/label :t/transacation-finalised))) | ||
|
||
(defn- f-view-internal | ||
[_] | ||
(let [status (reagent/atom :sending) | ||
{:keys [color]} (rf/sub [:wallet/current-viewing-account])] | ||
(fn [{:keys []}] | ||
[floating-button-page/view | ||
{:header [quo/page-nav | ||
{:type :no-title | ||
:background :blur | ||
:icon-name :i/close | ||
:margin-top (safe-area/get-top) | ||
:on-press #(rf/dispatch [:navigate-back]) | ||
:accessibility-label :top-bar}] | ||
:footer [quo/button | ||
{:customization-color color | ||
:on-press #(rf/dispatch [:navigate-back])} | ||
(i18n/label :t/done)] | ||
:customization-color color | ||
:gradient-cover? true} | ||
|
||
|
||
[rn/view {:style style/content-container} | ||
[rn/image | ||
{:source (resources/get-image :transaction-progress) | ||
:style {:margin-bottom 12}}] | ||
[quo/standard-title | ||
{:title (titles @status) | ||
:on-press #() | ||
:accessibility-label :top-bar}]]]))) | ||
|
||
(defn view-internal | ||
[props] | ||
[:f> f-view-internal props]) | ||
|
||
(def view (quo.theme/with-theme view-internal)) |
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