Compare commits

...
Author SHA1 Message Date
Ajay Sivan a0540d2396 show enable biometric screen in sync flow 2023-05-02 16:01:43 +05:30
3 changed files with 9 additions and 3 deletions
@@ -25,13 +25,14 @@
[rn/view {:style (style/buttons insets)}
[quo/button
{:accessibility-label :enable-biometrics-button
:on-press #(rf/dispatch [:onboarding-2/enable-biometrics])
:on-press #(rf/dispatch [:onboarding-2/enable-biometrics]) ;; Complete biometric auth and navigate to enable notificstions screen
:before :i/face-id
:override-background-color (colors/custom-color profile-color 50)}
(i18n/label :t/biometric-enable-button {:bio-type-label bio-type-label})]
[quo/button
{:accessibility-label :maybe-later-button
:on-press #(rf/dispatch [:onboarding-2/create-account-and-login])
;; :on-press #(rf/dispatch [:onboarding-2/create-account-and-login]) ;; Normal flow
:on-press #(rf/dispatch [:navigate-to :enable-notifications]) ;; Sync flow
:override-background-color colors/white-opa-5
:style {:margin-top 12}}
(i18n/label :t/maybe-later)]]))
+1 -1
View File
@@ -17,7 +17,7 @@
(merge
{:db (dissoc db :syncing)}
(when receiver?
{:dispatch [:init-root :enable-notifications]}))))
{:dispatch [:navigate-to :enable-biometrics]}))))
(rf/defn local-pairing-update-role
{:events [:syncing/update-role]}
+5
View File
@@ -111,6 +111,11 @@
:id :profiles
:options (options/default-root)}}]}}}
;; :enable-biometrics
;; {:root {:stack {:children [{:component {:name :enable-biometrics
;; :id :enable-biometrics
;; :options (options/default-root)}}]}}}
:enable-notifications
{:root {:stack {:children [{:component {:name :enable-notifications
:id :enable-notifications