returned network-badge

This commit is contained in:
Andrey Shovkoplyas 2017-10-17 15:06:46 +03:00 committed by Roman Volosovskyi
parent e6f8eec7c5
commit 23c663f3ef
1 changed files with 14 additions and 11 deletions

View File

@ -28,6 +28,9 @@
[react/view {:flex 1} [react/view {:flex 1}
[status-bar/status-bar] [status-bar/status-bar]
[new-toolbar/toolbar] [new-toolbar/toolbar]
[network-settings/network-badge
{:name name
:connected? connected?}]
(when-not connected? (when-not connected?
[react/touchable-highlight {:on-press #(rf/dispatch [:connect-network id])} [react/touchable-highlight {:on-press #(rf/dispatch [:connect-network id])}
[react/view st/connect-button-container [react/view st/connect-button-container
@ -43,14 +46,14 @@
;; TODO(rasom): uncomment edit-button when it will be functional, ;; TODO(rasom): uncomment edit-button when it will be functional,
;; https://github.com/status-im/status-react/issues/2104 ;; https://github.com/status-im/status-react/issues/2104
#_[react/view {:opacity 0.4} #_[react/view {:opacity 0.4}
[react/view st/edit-button-container [react/view st/edit-button-container
[react/view st/edit-button [react/view st/edit-button
[react/text {:style st/edit-button-label [react/text {:style st/edit-button-label
:uppercase? (get-in platform/platform-specific [:uppercase?])} :uppercase? (get-in platform/platform-specific [:uppercase?])}
(i18n/label :t/edit-network-config)]] (i18n/label :t/edit-network-config)]]
#_[context-menu ; TODO should be implemented later #_[context-menu ; TODO should be implemented later
[view st/edit-button [view st/edit-button
[text {:style st/edit-button-label} (i18n/label :t/edit-network-config)]] [text {:style st/edit-button-label} (i18n/label :t/edit-network-config)]]
options] options]
[react/text {:style st/edit-button-description} [react/text {:style st/edit-button-description}
(i18n/label :t/edit-network-warning)]]]]))) (i18n/label :t/edit-network-warning)]]]])))