diff --git a/src/status_im/ui/screens/accounts/login/models.cljs b/src/status_im/ui/screens/accounts/login/models.cljs index 153bb136ca..b68818f31b 100644 --- a/src/status_im/ui/screens/accounts/login/models.cljs +++ b/src/status_im/ui/screens/accounts/login/models.cljs @@ -77,5 +77,6 @@ (if password (handlers-macro/merge-fx cofx {:db (assoc-in db [:accounts/login :password] password)} + (navigation/navigate-to-cofx :progress nil) (user-login)) (navigation/navigate-to-cofx :login nil cofx))) diff --git a/src/status_im/ui/screens/progress/styles.cljs b/src/status_im/ui/screens/progress/styles.cljs new file mode 100644 index 0000000000..20bcd088f0 --- /dev/null +++ b/src/status_im/ui/screens/progress/styles.cljs @@ -0,0 +1,10 @@ +(ns status-im.ui.screens.progress.styles + (:require [status-im.ui.components.colors :as colors] + [status-im.ui.components.toolbar.styles :as toolbar.styles])) + +(def container + {:flex 1 + :align-items :center + :justify-content :center + :background-color colors/white}) + diff --git a/src/status_im/ui/screens/progress/views.cljs b/src/status_im/ui/screens/progress/views.cljs new file mode 100644 index 0000000000..75c362021b --- /dev/null +++ b/src/status_im/ui/screens/progress/views.cljs @@ -0,0 +1,10 @@ +(ns status-im.ui.screens.progress.views + (:require-macros [status-im.utils.views :refer [defview letsubs]]) + (:require [status-im.ui.screens.progress.styles :as styles] + [status-im.ui.components.react :as react] + [status-im.ui.components.react :as components])) + +;; a simple view with animated progress indicator in its center +(defview progress [_] + [react/keyboard-avoiding-view {:style styles/container} + [components/activity-indicator {:animating true}]]) diff --git a/src/status_im/ui/screens/views.cljs b/src/status_im/ui/screens/views.cljs index d2727c754b..9d1e5dea7f 100644 --- a/src/status_im/ui/screens/views.cljs +++ b/src/status_im/ui/screens/views.cljs @@ -11,6 +11,8 @@ [status-im.ui.screens.accounts.recover.views :refer [recover]] [status-im.ui.screens.accounts.views :refer [accounts]] + [status-im.ui.screens.progress.views :refer [progress]] + [status-im.chat.screen :refer [chat]] [status-im.ui.screens.add-new.views :refer [add-new]] [status-im.ui.screens.add-new.new-chat.views :refer [new-chat]] @@ -87,6 +89,7 @@ :profile-photo-capture profile-photo-capture :accounts accounts :login login + :progress progress :recover recover :network-settings network-settings :extensions-settings extensions-settings