|
5 | 5 | [react-native.core :as rn]
|
6 | 6 | [react-native.reanimated :as reanimated]
|
7 | 7 | [react-native.safe-area :as safe-area]
|
8 |
| - [status-im.common.check-before-syncing.view :as check-before-syncing] |
9 | 8 | [status-im.common.confirmation-drawer.view :as confirmation-drawer]
|
10 | 9 | [status-im.common.metrics-confirmation-modal.view :as metrics-modal]
|
11 | 10 | [status-im.common.standard-authentication.core :as standard-authentication]
|
|
44 | 43 | :linear
|
45 | 44 | 50))
|
46 | 45 |
|
47 |
| -(defn- show-check-before-syncing |
| 46 | +(defn- navigate-to-new-to-status |
48 | 47 | []
|
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)) |
57 | 61 |
|
58 | 62 | (defn new-account-options
|
59 | 63 | []
|
60 | 64 | [quo/action-drawer
|
61 | 65 | [[{:icon :i/profile
|
62 | 66 | :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 |
69 | 68 | :accessibility-label :create-new-profile}
|
70 | 69 | {: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 |
73 | 72 | :accessibility-label :multi-profile}]]])
|
74 | 73 |
|
75 | 74 | (defn show-new-account-options
|
|
0 commit comments