|
24 | 24 | [react/keyboard-avoiding-view open-dapp.styles/main-container |
25 | 25 | [status-bar/status-bar] |
26 | 26 | [toolbar.view/simple-toolbar (i18n/label :t/new-chat)] |
27 | | - [react/view add-new.styles/input-container |
28 | | - [react/text-input {:on-change-text #(re-frame/dispatch [:set :contacts/new-identity %]) |
29 | | - :on-submit-editing #(when-not error-message |
30 | | - (re-frame/dispatch [:add-contact-handler])) |
31 | | - :placeholder (i18n/label :t/enter-contact-code) |
32 | | - :style add-new.styles/input |
33 | | - :accessibility-label :enter-contact-code-input |
34 | | - :return-key-type :go}] |
| 27 | + [react/view add-new.styles/new-chat-container |
| 28 | + [react/view add-new.styles/new-chat-input-container |
| 29 | + [react/text-input {:on-change-text #(re-frame/dispatch [:set :contacts/new-identity %]) |
| 30 | + :on-submit-editing #(when-not error-message |
| 31 | + (re-frame/dispatch [:add-contact-handler])) |
| 32 | + :placeholder (i18n/label :t/enter-contact-code) |
| 33 | + :style add-new.styles/input |
| 34 | + :accessibility-label :enter-contact-code-input |
| 35 | + :return-key-type :go}]] |
35 | 36 | [react/touchable-highlight {:on-press #(re-frame/dispatch [:scan-qr-code |
36 | 37 | {:toolbar-title (i18n/label :t/new-contact)} |
37 | 38 | :set-contact-identity-from-qr]) |
38 | | - :style {:margin-right 14} |
| 39 | + :style add-new.styles/button-container |
39 | 40 | :accessibility-label :scan-contact-code-button} |
40 | 41 | [react/view |
41 | 42 | [vector-icons/icon :icons/qr {:color colors/blue}]]]] |
42 | 43 | [react/text {:style styles/error-message} |
43 | 44 | error-message] |
44 | | - [react/text {:style open-dapp.styles/list-title} |
45 | | - (i18n/label :t/contacts)] |
| 45 | + (when (seq contacts) |
| 46 | + [react/text {:style open-dapp.styles/list-title} |
| 47 | + (i18n/label :t/contacts)]) |
46 | 48 | [list/flat-list {:data contacts |
47 | 49 | :key-fn :address |
48 | 50 | :render-fn render-row |
|
0 commit comments