|
18 | 18 | [quo/text-combinations
|
19 | 19 | {:container-style {:margin-top 56 :margin-horizontal 20}
|
20 | 20 | :title (i18n/label (if pairing-progress?
|
21 |
| - :t/sync-devices-title |
| 21 | + :t/sync-profile-title |
22 | 22 | :t/sync-devices-error-title))
|
23 |
| - :description (i18n/label (if pairing-progress? |
24 |
| - :t/sync-devices-sub-title |
25 |
| - :t/sync-devices-error-sub-title)) |
| 23 | + :description (when-not pairing-progress? |
| 24 | + (i18n/label :t/sync-devices-error-sub-title)) |
26 | 25 | :title-accessibility-label :progress-screen-title
|
27 | 26 | :description-accessibility-label :progress-screen-sub-title}])
|
28 | 27 |
|
|
43 | 42 | (defn try-again-button
|
44 | 43 | [profile-color logged-in?]
|
45 | 44 | [quo/bottom-actions
|
46 |
| - {:actions (if logged-in? :one-action :two-actions) |
| 45 | + {:actions (if logged-in? :one-action :two-vertical-actions) |
47 | 46 | :blur? true
|
48 |
| - :button-one-label (i18n/label :t/recovery-phrase) |
49 |
| - :button-one-props {:type :primary |
| 47 | + :container-style {:height (when-not logged-in? 116)} |
| 48 | + :button-two-label (i18n/label :t/use-recovery-phrase) |
| 49 | + :button-two-props {:type :primary |
50 | 50 | :accessibility-label :try-seed-phrase-button
|
51 | 51 | :customization-color profile-color
|
52 |
| - :container-style {:flex 1} |
53 | 52 | :size 40
|
54 | 53 | :on-press navigate-to-enter-seed-phrase}
|
55 |
| - (if logged-in? :button-one-label :button-two-label) |
| 54 | + :button-one-label |
56 | 55 | (i18n/label :t/try-again)
|
57 |
| - (if logged-in? :button-one-props :button-two-props) |
| 56 | + :button-one-props |
58 | 57 | {:type (if logged-in? :primary :grey)
|
59 | 58 | :accessibility-label :try-again-later-button
|
60 | 59 | :customization-color profile-color
|
61 |
| - :container-style {:flex 1} |
62 | 60 | :size 40
|
63 | 61 | :on-press #(try-again logged-in?)}}])
|
64 | 62 |
|
65 | 63 | (defn- illustration
|
66 | 64 | [pairing-progress?]
|
67 | 65 | [rn/image
|
68 | 66 | {:resize-mode :contain
|
69 |
| - :style (style/page-illustration (:width (rn/get-window))) |
| 67 | + :style (style/page-illustration (:width (rn/get-window)) pairing-progress?) |
70 | 68 | :source (resources/get-image (if pairing-progress? :syncing-devices :syncing-wrong))}])
|
71 | 69 |
|
72 | 70 | (defn view
|
|
83 | 81 | [quo/page-nav {:type :no-title :background :blur}]
|
84 | 82 | [page-title pairing-progress?]
|
85 | 83 | [illustration pairing-progress?]
|
86 |
| - (when-not (pairing-progress pairing-status) |
| 84 | + (if pairing-progress? |
| 85 | + [quo/information-box |
| 86 | + {:type :default |
| 87 | + :blur? true |
| 88 | + :style {:margin-vertical 11 :margin-horizontal 12}} |
| 89 | + (i18n/label :t/sync-devices-sub-title)] |
87 | 90 | [try-again-button profile-color logged-in?])]))
|
88 | 91 |
|
89 | 92 | (defn view-onboarding
|
|
0 commit comments