-
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 (#18217)
- Loading branch information
Showing
11 changed files
with
117 additions
and
50 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
5 changes: 5 additions & 0 deletions
5
src/status_im/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-im.contexts.wallet.send.transaction-progress.style) | ||
|
||
(def content-container | ||
{:flex 1 | ||
:margin-horizontal 20}) |
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
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