Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Oct 1, 2023
1 parent 93dd0e5 commit 0531adb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 10 additions & 4 deletions src/quo2/components/navigation/page_nav/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
:icon-only? true
:size 32
:on-press on-press
:background (if overlay-shown? :blur (when (button-properties/backgrounds background) background))
:background (if overlay-shown?
:blur
(when (button-properties/backgrounds background) background))
:accessibility-label accessibility-label}
icon-name])]
children))
Expand All @@ -48,7 +50,9 @@
:icon-only? icon-name
:size 32
:accessible true
:background (if overlay-shown? :blur (when (button-properties/backgrounds background) background)))
:background (if overlay-shown?
:blur
(when (button-properties/backgrounds background) background)))
(or label icon-name)]))
(interpose [right-section-spacing])))

Expand All @@ -64,7 +68,8 @@
emoji])

(defn- right-content
[{:keys [background content max-actions min-size? support-account-switcher? account-switcher overlay-shown?]
[{:keys [background content max-actions min-size? support-account-switcher? account-switcher
overlay-shown?]
:or {support-account-switcher? true}}]
[rn/view (when min-size? {:style style/right-content-min-size})
(cond
Expand Down Expand Up @@ -179,7 +184,8 @@
(case type
:no-title
[page-nav-base props
[right-content {:background background :content right-side :max-actions 3 :overlay-shown? overlay-shown?}]]
[right-content
{:background background :content right-side :max-actions 3 :overlay-shown? overlay-shown?}]]

:title
(let [centered? (= text-align :center)]
Expand Down
3 changes: 2 additions & 1 deletion src/status_im2/contexts/communities/overview/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@
pending?
{:on-category-layout (partial add-category-height categories-heights)
:collapsed? collapsed?
:on-first-channel-height-changed ;; Here we set the height of the component and we filter out the
:on-first-channel-height-changed ;; Here we set the height of the component and we filter out
;; the
;; categories, as some might have been removed
(fn [height categories]
(swap! categories-heights select-keys categories)
Expand Down

0 comments on commit 0531adb

Please sign in to comment.