-
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.
- Loading branch information
Showing
8 changed files
with
121 additions
and
136 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
2 changes: 1 addition & 1 deletion
2
...llet/send/transaction_progress/style.cljs → ...llet/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
44 changes: 44 additions & 0 deletions
44
src/status_im/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,44 @@ | ||
(ns status-im.contexts.wallet.send.transaction-progress.view | ||
(:require | ||
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[react-native.safe-area :as safe-area] | ||
[reagent.core :as reagent] | ||
[status-im.common.floating-button-page.view :as floating-button-page] | ||
[status-im.common.resources :as resources] | ||
[status-im.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 view | ||
[] | ||
(let [status (reagent/atom :sending) | ||
{:keys [color]} (rf/sub [:wallet/current-viewing-account])] | ||
[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)}]]])) |
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
55 changes: 0 additions & 55 deletions
55
src/status_im2/contexts/wallet/send/transaction_progress/view.cljs
This file was deleted.
Oops, something went wrong.