mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
Dont show wallet offline on desktop
This commit is contained in:
parent
d760f1696c
commit
7921729910
@ -4,6 +4,7 @@
|
||||
[reagent.core :as reagent]
|
||||
[status-im.ui.components.react :as react]
|
||||
[status-im.ui.components.connectivity.styles :as styles]
|
||||
[status-im.utils.platform :as utils.platform]
|
||||
[status-im.i18n :as i18n]))
|
||||
|
||||
(defview error-label
|
||||
@ -38,11 +39,17 @@
|
||||
current-chat-contact [:chats/current-chat-contact]
|
||||
view-id [:get :view-id]
|
||||
window-width [:dimensions/window-width]]
|
||||
(let [wallet-offline? (and offline?
|
||||
;; There's no wallet of desktop
|
||||
(not utils.platform/desktop?))]
|
||||
|
||||
(when-let [label (cond
|
||||
(and offline?
|
||||
(and wallet-offline?
|
||||
disconnected?) :t/offline
|
||||
offline? :t/wallet-offline
|
||||
|
||||
wallet-offline? :t/wallet-offline
|
||||
disconnected? :t/disconnected
|
||||
|
||||
mailserver-connection-error? :t/mailserver-reconnect
|
||||
mailserver-request-error? :t/mailserver-request-error-status
|
||||
mailserver-fetching? :t/fetching-messages
|
||||
@ -56,4 +63,4 @@
|
||||
:label label
|
||||
:mailserver-fetching? mailserver-fetching?
|
||||
:mailserver-request-error? mailserver-request-error?
|
||||
:mailserver-connection-error? mailserver-connection-error?}]))))
|
||||
:mailserver-connection-error? mailserver-connection-error?}])))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user