|
11 | 11 | (rf/dispatch [:bottom-sheet/hide])
|
12 | 12 | (rf/dispatch event))
|
13 | 13 |
|
14 |
| -(defn mute-chat-drawer [chat-id accessibility-label] |
| 14 | +(defn mute-chat-drawer |
| 15 | + [chat-id accessibility-label] |
15 | 16 | [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)] |
19 | 21 | [quo/menu-item
|
20 | 22 | {:type :transparent
|
21 | 23 | :title (i18n/label :t/mute-for-1-min)
|
22 | 24 | :icon-bg-color :transparent
|
23 | 25 | :container-padding-vertical 12
|
24 | 26 | :title-column-style {:margin-left 2}
|
25 | 27 | :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]))}] |
27 | 30 | [quo/menu-item
|
28 | 31 | {:type :transparent
|
29 | 32 | :title (i18n/label :t/mute-for-15-mins)
|
30 | 33 | :icon-bg-color :transparent
|
31 | 34 | :container-padding-vertical 12
|
32 | 35 | :title-column-style {:margin-left 2}
|
33 | 36 | :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]))}] |
35 | 39 | [quo/menu-item
|
36 | 40 | {:type :transparent
|
37 | 41 | :title (i18n/label :t/mute-for-1-hour)
|
38 | 42 | :icon-bg-color :transparent
|
39 | 43 | :container-padding-vertical 12
|
40 | 44 | :title-column-style {:margin-left 2}
|
41 | 45 | :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]))}] |
43 | 48 | [quo/menu-item
|
44 | 49 | {:type :transparent
|
45 | 50 | :title (i18n/label :t/mute-for-8-hours)
|
46 | 51 | :icon-bg-color :transparent
|
47 | 52 | :container-padding-vertical 12
|
48 | 53 | :title-column-style {:margin-left 2}
|
49 | 54 | :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]))}] |
51 | 57 | [quo/menu-item
|
52 | 58 | {:type :transparent
|
53 | 59 | :title (i18n/label :t/mute-for-1-week)
|
54 | 60 | :icon-bg-color :transparent
|
55 | 61 | :container-padding-vertical 12
|
56 | 62 | :title-column-style {:margin-left 2}
|
57 | 63 | :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]))}] |
59 | 66 | [quo/menu-item
|
60 | 67 | {:type :transparent
|
61 | 68 | :title (i18n/label :t/mute-till-unmute)
|
62 | 69 | :icon-bg-color :transparent
|
63 | 70 | :container-padding-vertical 12
|
64 | 71 | :title-column-style {:margin-left 2}
|
65 | 72 | :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]))}]]) |
0 commit comments