Skip to content

Commit 59df5ec

Browse files
committed
Lint fix
1 parent a3b84ce commit 59df5ec

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

src/quo/components/community/community_card_view.cljs

+4-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@
6464
{:title name
6565
:description description}]
6666
[rn/view {:style style/card-stats-position}
67-
[community-view/community-stats-column {:type :card-view
68-
:members-count (:members-count community)
69-
:active-members-count (:active-members-count community)}]]
67+
[community-view/community-stats-column
68+
{:type :card-view
69+
:members-count (:members-count community)
70+
:active-members-count (:active-members-count community)}]]
7071
[rn/view {:style style/community-tags-position}
7172
[community-view/community-tags {:tags tags}]]]]]]))
7273

src/quo/components/community/style.cljs

+4-4
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@
140140
:background-color (colors/theme-colors colors/white colors/neutral-90 theme)})
141141

142142
(def loading-tags-container
143-
{:margin-top 20
143+
{:margin-top 20
144144
:flex-direction :row
145-
:align-items :center})
145+
:align-items :center})
146146

147147
(def loading-stats-container
148-
{:margin-top 20
148+
{:margin-top 20
149149
:flex-direction :row
150-
:align-items :center})
150+
:align-items :center})
151151

152152
(defn loading-stat-circle
153153
[theme margin-left]

src/status_im/contexts/communities/actions/leave/events.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
:on-success #(rf/dispatch [:communities/cancel-request-to-join-success %])
2020
:js-response true
2121
:on-error #(log/error "failed to cancel request to join community"
22-
request-to-join-id %)}]}))
22+
request-to-join-id
23+
%)}]}))
2324

2425
(rf/reg-event-fx :communities/left
2526
(fn [_ [response-js]]

src/status_im/contexts/communities/discover/view.cljs

+18-13
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,11 @@
141141
:style {:margin-bottom 16}}
142142
(if (= view-type :card-view)
143143
[quo/community-card-view-item
144-
{:community (assoc community :cover cover
145-
:members-count (count (:members community)))
146-
:on-press #(rf/dispatch [:communities/navigate-to-community-overview community-id])}]
144+
{:community (assoc community
145+
:cover cover
146+
:members-count (count (:members community)))
147+
:on-press #(rf/dispatch [:communities/navigate-to-community-overview
148+
community-id])}]
147149
[quo/community-list
148150
{:on-press (fn []
149151
(rf/dispatch [:dismiss-keyboard])
@@ -162,8 +164,9 @@
162164
[rn/view {:style {:flex 1}}
163165
(case @selected-tab
164166
:all
165-
[other-communities-list {:communities (rf/sub [:communities/other-contract-communities])
166-
:view-type view-type}]
167+
[other-communities-list
168+
{:communities (rf/sub [:communities/other-contract-communities])
169+
:view-type view-type}]
167170

168171
:open
169172
[:<>]
@@ -193,10 +196,11 @@
193196
{:style (style/blur-tabs-header (safe-area/get-top))}
194197
[discover-communities-segments selected-tab true]]))
195198

196-
(defn discover-screen-content []
197-
(let [view-type (reagent/atom :card-view)
198-
selected-tab (reagent/atom :all)
199-
scroll-height (reagent/atom 0)]
199+
(defn discover-screen-content
200+
[]
201+
(let [view-type (reagent/atom :card-view)
202+
selected-tab (reagent/atom :all)
203+
scroll-height (reagent/atom 0)]
200204
(fn []
201205
(let [theme (quo.theme/use-theme)
202206
featured-communities (rf/sub [:communities/featured-contract-communities])
@@ -222,8 +226,9 @@
222226
[]
223227
(let [theme (quo.theme/use-theme)]
224228
(rn/use-mount #(rf/dispatch [:fetch-contract-communities]))
225-
[rn/view {:style (style/discover-screen-container (colors/theme-colors
226-
colors/white
227-
colors/neutral-95
228-
theme))}
229+
[rn/view
230+
{:style (style/discover-screen-container (colors/theme-colors
231+
colors/white
232+
colors/neutral-95
233+
theme))}
229234
[discover-screen-content]]))

0 commit comments

Comments
 (0)