diff --git a/src/status_im2/contexts/wallet/send/transaction_progress/view.cljs b/src/status_im2/contexts/wallet/send/transaction_progress/view.cljs index ea5b6ff414c6..bf0d8af02111 100644 --- a/src/status_im2/contexts/wallet/send/transaction_progress/view.cljs +++ b/src/status_im2/contexts/wallet/send/transaction_progress/view.cljs @@ -1,7 +1,6 @@ (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] @@ -18,38 +17,27 @@ :confirmed (i18n/label :t/transaction-confirmed) :finalised (i18n/label :t/transacation-finalised))) -(defn- f-view-internal - [_] +(defn view + [] (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)) + [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)}]]]))