Update Sign in flow on Profiles list screen (#21160)
This commit is contained in:
parent
110475a973
commit
779eadd787
|
@ -5,7 +5,6 @@
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[react-native.reanimated :as reanimated]
|
[react-native.reanimated :as reanimated]
|
||||||
[react-native.safe-area :as safe-area]
|
[react-native.safe-area :as safe-area]
|
||||||
[status-im.common.check-before-syncing.view :as check-before-syncing]
|
|
||||||
[status-im.common.confirmation-drawer.view :as confirmation-drawer]
|
[status-im.common.confirmation-drawer.view :as confirmation-drawer]
|
||||||
[status-im.common.metrics-confirmation-modal.view :as metrics-modal]
|
[status-im.common.metrics-confirmation-modal.view :as metrics-modal]
|
||||||
[status-im.common.standard-authentication.core :as standard-authentication]
|
[status-im.common.standard-authentication.core :as standard-authentication]
|
||||||
|
@ -44,32 +43,32 @@
|
||||||
:linear
|
:linear
|
||||||
50))
|
50))
|
||||||
|
|
||||||
(defn- show-check-before-syncing
|
(defn- navigate-to-new-to-status
|
||||||
[]
|
[]
|
||||||
(rf/dispatch
|
(when @push-animation-fn-atom
|
||||||
[:show-bottom-sheet
|
(@push-animation-fn-atom))
|
||||||
{:content (fn [] [check-before-syncing/view
|
(debounce/throttle-and-dispatch
|
||||||
{:on-submit
|
[:open-modal :screen/onboarding.new-to-status]
|
||||||
#(debounce/throttle-and-dispatch
|
1000))
|
||||||
[:open-modal :screen/onboarding.sign-in]
|
|
||||||
1000)}])
|
(defn- navigate-to-sync-or-recover-profile
|
||||||
:shell? true}]))
|
[]
|
||||||
|
(when @push-animation-fn-atom
|
||||||
|
(@push-animation-fn-atom))
|
||||||
|
(debounce/throttle-and-dispatch
|
||||||
|
[:open-modal :screen/onboarding.sync-or-recover-profile]
|
||||||
|
1000))
|
||||||
|
|
||||||
(defn new-account-options
|
(defn new-account-options
|
||||||
[]
|
[]
|
||||||
[quo/action-drawer
|
[quo/action-drawer
|
||||||
[[{:icon :i/profile
|
[[{:icon :i/profile
|
||||||
:label (i18n/label :t/create-new-profile)
|
:label (i18n/label :t/create-new-profile)
|
||||||
:on-press (fn []
|
:on-press navigate-to-new-to-status
|
||||||
(when @push-animation-fn-atom
|
|
||||||
(@push-animation-fn-atom))
|
|
||||||
(debounce/throttle-and-dispatch
|
|
||||||
[:open-modal :screen/onboarding.new-to-status]
|
|
||||||
1000))
|
|
||||||
:accessibility-label :create-new-profile}
|
:accessibility-label :create-new-profile}
|
||||||
{:icon :i/multi-profile
|
{:icon :i/multi-profile
|
||||||
:label (i18n/label :t/add-existing-status-profile)
|
:label (i18n/label :t/sync-or-recover-profile)
|
||||||
:on-press show-check-before-syncing
|
:on-press navigate-to-sync-or-recover-profile
|
||||||
:accessibility-label :multi-profile}]]])
|
:accessibility-label :multi-profile}]]])
|
||||||
|
|
||||||
(defn show-new-account-options
|
(defn show-new-account-options
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
"add-bootnode": "Add bootnode",
|
"add-bootnode": "Add bootnode",
|
||||||
"add-contact": "Add contact",
|
"add-contact": "Add contact",
|
||||||
"add-custom-token": "Add custom token",
|
"add-custom-token": "Add custom token",
|
||||||
"add-existing-status-profile": "Add existing Status profile",
|
|
||||||
"add-favourite": "Add favourite",
|
"add-favourite": "Add favourite",
|
||||||
"add-mailserver": "Add Status node",
|
"add-mailserver": "Add Status node",
|
||||||
"add-me-to-your-contacts": "Please add me to your contacts",
|
"add-me-to-your-contacts": "Please add me to your contacts",
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
"add-bootnode": "Bootnodeを追加",
|
"add-bootnode": "Bootnodeを追加",
|
||||||
"add-contact": "連絡先を追加",
|
"add-contact": "連絡先を追加",
|
||||||
"add-custom-token": "カスタムトークンを追加",
|
"add-custom-token": "カスタムトークンを追加",
|
||||||
"add-existing-status-profile": "既存のStatusプロフィールを追加する",
|
|
||||||
"add-favourite": "お気に入りに追加する",
|
"add-favourite": "お気に入りに追加する",
|
||||||
"add-mailserver": "Statusノードを追加",
|
"add-mailserver": "Statusノードを追加",
|
||||||
"add-me-to-your-contacts": "連絡先に追加してください",
|
"add-me-to-your-contacts": "連絡先に追加してください",
|
||||||
|
|
Loading…
Reference in New Issue