Skip to content

Commit 5f4bbb7

Browse files
committed
Lint
1 parent b9b9084 commit 5f4bbb7

File tree

6 files changed

+33
-21
lines changed

6 files changed

+33
-21
lines changed

src/quo2/components/list_items/menu_item.cljs

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
(when on-press
3131
{:on-press on-press}))
3232
[rn/view
33-
{:style (cond-> {:flex-direction :row
34-
:flex-grow 0
35-
:flex-shrink 1
36-
:align-items :center}
37-
icon (assoc :padding-horizontal 20))}
33+
{:style (cond-> {:flex-direction :row
34+
:flex-grow 0
35+
:flex-shrink 1
36+
:align-items :center}
37+
icon (assoc :padding-horizontal 20))}
3838
[rn/view
3939
{:style (cond-> {:width 20
4040
:height 20
4141
:align-items :center
4242
:justify-content :center}
43-
icon (assoc :margin-right 12))}
43+
icon (assoc :margin-right 12))}
4444
(when icon [icons/icon icon {:color icon-color}])]
4545
[rn/view
4646
[text/text

src/status_im/ui/screens/profile/contact/views.cljs

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
:selected muted?
4545
:disabled blocked?
4646
:action (when-not blocked?
47-
#(re-frame/dispatch [:chat.ui/mute public-key (not muted?) (when-not muted? constants/mute-till-unmuted)]))}]
47+
#(re-frame/dispatch [:chat.ui/mute public-key (not muted?)
48+
(when-not muted?
49+
constants/mute-till-unmuted)]))}]
4850
[{:label (i18n/label (if blocked? :t/unblock :t/block))
4951
:negative true
5052
:selected blocked?
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
(ns status-im2.common.mute-chat-drawer.style
1+
(ns status-im2.common.mute-chat-drawer.style
22
(:require [quo2.foundations.colors :as colors]))
33

4-
(defn header-text []
4+
(defn header-text
5+
[]
56
{:margin-left 20
67
:margin-bottom 10
78
:color (colors/theme-colors colors/neutral-50 colors/neutral-40)})

src/status_im2/common/mute_chat_drawer/view.cljs

+18-10
Original file line numberDiff line numberDiff line change
@@ -11,56 +11,64 @@
1111
(rf/dispatch [:bottom-sheet/hide])
1212
(rf/dispatch event))
1313

14-
(defn mute-chat-drawer [chat-id accessibility-label]
14+
(defn mute-chat-drawer
15+
[chat-id accessibility-label]
1516
[rn/view {:accessibility-label accessibility-label}
16-
[quo/text {:weight :medium
17-
:size :paragraph-2
18-
:style (style/header-text)} (i18n/label :t/mute-channel)]
17+
[quo/text
18+
{:weight :medium
19+
:size :paragraph-2
20+
:style (style/header-text)} (i18n/label :t/mute-channel)]
1921
[quo/menu-item
2022
{:type :transparent
2123
:title (i18n/label :t/mute-for-1-min)
2224
:icon-bg-color :transparent
2325
:container-padding-vertical 12
2426
:title-column-style {:margin-left 2}
2527
:on-press (fn []
26-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-for-1-min]))}]
28+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
29+
constants/mute-for-1-min]))}]
2730
[quo/menu-item
2831
{:type :transparent
2932
:title (i18n/label :t/mute-for-15-mins)
3033
:icon-bg-color :transparent
3134
:container-padding-vertical 12
3235
:title-column-style {:margin-left 2}
3336
:on-press (fn []
34-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-for-15-mins-type]))}]
37+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
38+
constants/mute-for-15-mins-type]))}]
3539
[quo/menu-item
3640
{:type :transparent
3741
:title (i18n/label :t/mute-for-1-hour)
3842
:icon-bg-color :transparent
3943
:container-padding-vertical 12
4044
:title-column-style {:margin-left 2}
4145
:on-press (fn []
42-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-for-1-hour-type]))}]
46+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
47+
constants/mute-for-1-hour-type]))}]
4348
[quo/menu-item
4449
{:type :transparent
4550
:title (i18n/label :t/mute-for-8-hours)
4651
:icon-bg-color :transparent
4752
:container-padding-vertical 12
4853
:title-column-style {:margin-left 2}
4954
:on-press (fn []
50-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-for-8-hours-type]))}]
55+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
56+
constants/mute-for-8-hours-type]))}]
5157
[quo/menu-item
5258
{:type :transparent
5359
:title (i18n/label :t/mute-for-1-week)
5460
:icon-bg-color :transparent
5561
:container-padding-vertical 12
5662
:title-column-style {:margin-left 2}
5763
:on-press (fn []
58-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-for-1-week]))}]
64+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
65+
constants/mute-for-1-week]))}]
5966
[quo/menu-item
6067
{:type :transparent
6168
:title (i18n/label :t/mute-till-unmute)
6269
:icon-bg-color :transparent
6370
:container-padding-vertical 12
6471
:title-column-style {:margin-left 2}
6572
:on-press (fn []
66-
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true constants/mute-till-unmuted]))}]])
73+
(hide-sheet-and-dispatch [:chat.ui/mute chat-id true
74+
constants/mute-till-unmuted]))}]])

src/status_im2/contexts/chat/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
{:events [:chat.ui/mute]}
300300
[{:keys [db]} chat-id muted? mute-type]
301301
(let [method (if muted? "wakuext_muteChatV2" "wakuext_unmuteChat")
302-
params (if muted? [{:chatId chat-id :mutedType mute-type}] [chat-id])]
302+
params (if muted? [{:chatId chat-id :mutedType mute-type}] [chat-id])]
303303
{:db (assoc-in db [:chats chat-id :muted] muted?)
304304
:json-rpc/call [{:method method
305305
:params params

src/status_im2/contexts/chat/group_details/view.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@
197197
[rn/touchable-opacity
198198
{:style (style/action-container color)
199199
:accessibility-label :toggle-mute
200-
:on-press #(rf/dispatch [:chat.ui/mute chat-id (not muted) (when-not muted constants/mute-till-unmuted)])}
200+
:on-press #(rf/dispatch [:chat.ui/mute chat-id (not muted)
201+
(when-not muted constants/mute-till-unmuted)])}
201202
[quo/icon (if muted :i/muted :i/activity-center)
202203
{:size 20 :color (colors/theme-colors colors/neutral-100 colors/white)}]
203204
[quo/text {:style {:margin-top 16} :size :paragraph-1 :weight :medium}

0 commit comments

Comments
 (0)