|
33 | 33 | [:onboarding/navigate-to-sign-in-by-seed-phrase :screen/onboarding.sync-or-recover-profile]
|
34 | 34 | 500))
|
35 | 35 |
|
| 36 | +(defn- try-again |
| 37 | + [] |
| 38 | + (rf/dispatch [:syncing/clear-states]) |
| 39 | + (rf/dispatch [:navigate-back])) |
| 40 | + |
36 | 41 | (defn try-again-button
|
37 | 42 | [profile-color logged-in?]
|
38 |
| - [:<> |
39 |
| - (when-not logged-in? |
40 |
| - [quo/button |
41 |
| - {:on-press navigate-to-enter-seed-phrase |
42 |
| - :accessibility-label :try-seed-phrase-button |
43 |
| - :customization-color profile-color |
44 |
| - :container-style style/try-again-button} |
45 |
| - (i18n/label :t/enter-seed-phrase)]) |
46 |
| - [quo/button |
47 |
| - {:on-press (fn [] |
48 |
| - (rf/dispatch [:syncing/clear-states]) |
49 |
| - (rf/dispatch [:navigate-back])) |
| 43 | + [quo/bottom-actions |
| 44 | + {:actions (if logged-in? :one-action :two-actions) |
| 45 | + :blur? true |
| 46 | + :button-one-label (i18n/label :t/recovery-phrase) |
| 47 | + :button-one-props {:type :primary |
| 48 | + :accessibility-label :try-seed-phrase-button |
| 49 | + :customization-color profile-color |
| 50 | + :container-style {:flex 1} |
| 51 | + :size 40 |
| 52 | + :on-press navigate-to-enter-seed-phrase} |
| 53 | + (if logged-in? :button-one-label :button-two-label) |
| 54 | + (i18n/label :t/try-again) |
| 55 | + (if logged-in? :button-one-props :button-two-props) |
| 56 | + {:type (if logged-in? :primary :grey) |
50 | 57 | :accessibility-label :try-again-later-button
|
51 | 58 | :customization-color profile-color
|
| 59 | + :container-style {:flex 1} |
52 | 60 | :size 40
|
53 |
| - :container-style style/try-again-button} |
54 |
| - (i18n/label :t/try-again)]]) |
| 61 | + :on-press try-again}}]) |
55 | 62 |
|
56 | 63 | (defn- illustration
|
57 | 64 | [pairing-progress?]
|
|
0 commit comments