Skip to content

Commit

Permalink
fix top padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Feb 18, 2024
1 parent 80047bf commit 9e0390e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
(:require
[quo.foundations.colors :as colors]))

(def container-main
(defn container-main
[top]
{:background-color colors/neutral-95
:padding-top top
:flex 1})

(def page-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[quo.core :as quo]
[quo.foundations.colors :as colors]
[react-native.core :as rn]
[react-native.safe-area :as safe-area]
[status-im.contexts.syncing.device.view :as device]
[status-im.contexts.syncing.syncing-devices-list.style :as style]
[utils.i18n :as i18n]
Expand All @@ -11,14 +12,15 @@
(defn view
[]
(let [devices (rf/sub [:pairing/installations])
insets (safe-area/get-insets)
devices-with-button (map #(assoc % :show-button? true) devices)
user-device (first devices-with-button)
other-devices (rest devices-with-button)
profile-color (rf/sub [:profile/customization-color])
{:keys [paired-devices unpaired-devices]} (group-by
#(if (:enabled? %) :paired-devices :unpaired-devices)
other-devices)]
[rn/view {:style style/container-main}
[rn/view {:style (style/container-main (:top insets))}
[quo/page-nav
{:type :no-title
:background :blur
Expand Down

0 comments on commit 9e0390e

Please sign in to comment.