Skip to content

Commit 601045e

Browse files
committed
Update Sign in flow on Profiles list screen
1 parent 5b75e1d commit 601045e

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

Diff for: src/status_im/contexts/profile/profiles/view.cljs

+17-18
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[react-native.core :as rn]
66
[react-native.reanimated :as reanimated]
77
[react-native.safe-area :as safe-area]
8-
[status-im.common.check-before-syncing.view :as check-before-syncing]
98
[status-im.common.confirmation-drawer.view :as confirmation-drawer]
109
[status-im.common.metrics-confirmation-modal.view :as metrics-modal]
1110
[status-im.common.standard-authentication.core :as standard-authentication]
@@ -44,32 +43,32 @@
4443
:linear
4544
50))
4645

47-
(defn- show-check-before-syncing
46+
(defn- navigate-to-new-to-status
4847
[]
49-
(rf/dispatch
50-
[:show-bottom-sheet
51-
{:content (fn [] [check-before-syncing/view
52-
{:on-submit
53-
#(debounce/throttle-and-dispatch
54-
[:open-modal :screen/onboarding.sign-in]
55-
1000)}])
56-
:shell? true}]))
48+
(when @push-animation-fn-atom
49+
(@push-animation-fn-atom))
50+
(debounce/throttle-and-dispatch
51+
[:open-modal :screen/onboarding.new-to-status]
52+
1000))
53+
54+
(defn- navigate-to-sync-or-recover-profile
55+
[]
56+
(when @push-animation-fn-atom
57+
(@push-animation-fn-atom))
58+
(debounce/throttle-and-dispatch
59+
[:open-modal :screen/onboarding.sync-or-recover-profile]
60+
1000))
5761

5862
(defn new-account-options
5963
[]
6064
[quo/action-drawer
6165
[[{:icon :i/profile
6266
:label (i18n/label :t/create-new-profile)
63-
:on-press (fn []
64-
(when @push-animation-fn-atom
65-
(@push-animation-fn-atom))
66-
(debounce/throttle-and-dispatch
67-
[:open-modal :screen/onboarding.new-to-status]
68-
1000))
67+
:on-press navigate-to-new-to-status
6968
:accessibility-label :create-new-profile}
7069
{:icon :i/multi-profile
71-
:label (i18n/label :t/add-existing-status-profile)
72-
:on-press show-check-before-syncing
70+
:label (i18n/label :t/sync-or-recover-profile)
71+
:on-press navigate-to-sync-or-recover-profile
7372
:accessibility-label :multi-profile}]]])
7473

7574
(defn show-new-account-options

Diff for: translations/en.json

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"add-bootnode": "Add bootnode",
5454
"add-contact": "Add contact",
5555
"add-custom-token": "Add custom token",
56-
"add-existing-status-profile": "Add existing Status profile",
5756
"add-favourite": "Add favourite",
5857
"add-mailserver": "Add Status node",
5958
"add-me-to-your-contacts": "Please add me to your contacts",

Diff for: translations/ja.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"add-bootnode": "Bootnodeを追加",
4949
"add-contact": "連絡先を追加",
5050
"add-custom-token": "カスタムトークンを追加",
51-
"add-existing-status-profile": "既存のStatusプロフィールを追加する",
5251
"add-favourite": "お気に入りに追加する",
5352
"add-mailserver": "Statusノードを追加",
5453
"add-me-to-your-contacts": "連絡先に追加してください",

0 commit comments

Comments
 (0)