Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Son89 committed Feb 16, 2024
1 parent 9340950 commit cb0847d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/legacy/status_im/network/net_info.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
(rf/defn change-network-status
[{:keys [db] :as cofx} is-connected?]
(rf/merge cofx
{:db (assoc db :network-status (if is-connected? :online :offline))}
(when (and is-connected?
(or (not= (count (get-in db [:wallet-legacy :accounts]))
(count (get db :profile/wallet-accounts))))))))
{:db (assoc db :network-status (if is-connected? :online :offline))}))

(rf/defn change-network-type
[{:keys [db] :as cofx} old-network-type network-type expensive?]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
:container-style styles/input-container-style
:accessibility-label :dapp-url-input
:return-key-type :go}]
[react/view {:style {:margin-top 8}}]
[react/view {:style {:height 1 :background-color (colors/alpha colors/black 0.1)}}]
[list/flat-list
{:header [list-header (empty? bookmarks)]
:data bookmarks
Expand Down
4 changes: 2 additions & 2 deletions src/legacy/status_im/ui/screens/browser/options/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
:subtitle (utils/get-shortened-checksum-address (:address account))
:accessory [icons/icon :main-icons/check {:color colors/gray}]}]
[react/view {:padding-vertical 8}
[react/view {:style {:margin-top 8}}]]
[react/view {:style {:height 1 :background-color (colors/alpha colors/black 0.1)}}]]
[list.item/list-item
{:theme :negative
:title (i18n/label :t/revoke-access)
Expand Down Expand Up @@ -85,7 +85,7 @@
(js/setTimeout
#(browser/share-link url)
200))}]
[react/view {:style {:margin-top 8}}]])
[react/view {:style {:height 1 :background-color (colors/alpha colors/black 0.1)}}]])
(if connected?
[list.item/list-item
{:icon [chat-icon/custom-icon-view-list (:name account) (:color account)]
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/status_im/ui/screens/browser/tabs/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
:on-press #(do (re-frame/dispatch [:browser.ui/clear-all-browsers-pressed])
(re-frame/dispatch [:browser.ui/open-empty-tab]))}]
:title (i18n/label :t/tabs)}]
[react/view {:style {:margin-top 8}}]
[react/view {:style {:height 1 :background-color (colors/alpha colors/black 0.1)}}]
[list/flat-list
{:data (conj browsers
{:empty-tab true
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/status_im/ui/screens/browser/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
url-original (browser/get-current-url current-browser)]
[react/view {:style styles/browser}
[toolbar-content url url-original secure? url-editing? unsafe?]
[react/view {:style {:margin-top 8}}]
[react/view {:style {:height 1 :background-color (colors/alpha colors/black 0.1)}}]
[react/view
(when loading?
[connectivity/loading-indicator-anim window-width])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@
(models.visibility-status-updates/handle-visibility-status-updates
visibility-status-updates-clj)))

(seq accounts)
(do
(js-delete response-js "accounts")
(rf/merge cofx
(process-next response-js sync-handler)))

(seq settings)
(do
(js-delete response-js "settings")
Expand Down

0 comments on commit cb0847d

Please sign in to comment.