Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Son89 committed Dec 17, 2023
1 parent 3ae6c81 commit bf6f14f
Showing 1 changed file with 22 additions and 34 deletions.
56 changes: 22 additions & 34 deletions src/status_im2/contexts/wallet/send/transaction_progress/view.cljs
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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)}]]]))

0 comments on commit bf6f14f

Please sign in to comment.