File tree 5 files changed +41
-0
lines changed
contexts/communities/actions 5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 74
74
:adminSettings :admin-settings
75
75
:tokenPermissions :token-permissions
76
76
:communityTokensMetadata :tokens-metadata
77
+ :introMessage :intro-message
77
78
:muteTill :muted-till })
78
79
(update :admin-settings
79
80
set/rename-keys
Original file line number Diff line number Diff line change 4
4
[react-native.core :as rn]
5
5
[react-native.gesture :as gesture]
6
6
[status-im2.common.password-authentication.view :as password-authentication]
7
+ [status-im2.contexts.communities.actions.community-rules.view :as community-rules]
7
8
[status-im2.contexts.communities.actions.request-to-join.style :as style]
8
9
[utils.i18n :as i18n]
9
10
[utils.re-frame :as rf]))
26
27
[rn/view {:flex 1 }
27
28
[gesture/scroll-view {:style {:flex 1 }}
28
29
[rn/view style/page-container
30
+ [quo/text
31
+ {:style {:margin-top 24 }
32
+ :accessibility-label :community-rules-title
33
+ :weight :semi-bold
34
+ :size :paragraph-1 }
35
+ (i18n/label :t/community-rules )]
36
+ [community-rules/view id]
29
37
[rn/view {:style (style/bottom-container )}
30
38
[quo/button
31
39
{:accessibility-label :cancel
Original file line number Diff line number Diff line change
1
+ (ns status-im2.contexts.communities.actions.community-rules.style )
2
+
3
+ (def community-rule
4
+ {:flex 1
5
+ :align-items :flex-start
6
+ :margin-top 16 })
7
+
8
+ (def community-rule-text
9
+ {:margin-left 6
10
+ :flex 1 })
Original file line number Diff line number Diff line change
1
+ (ns status-im2.contexts.communities.actions.community-rules.view
2
+ (:require
3
+ [quo.core :as quo]
4
+ [react-native.core :as rn]
5
+ [status-im2.contexts.communities.actions.community-rules.style :as style]
6
+ [utils.re-frame :as rf]))
7
+
8
+ (defn view
9
+ [id]
10
+ (let [rules (rf/sub [:communities/rules id])]
11
+ [rn/view {:style style/community-rule}
12
+ [quo/text
13
+ {:style style/community-rule-text
14
+ :weight :regular
15
+ :size :paragraph-2 }
16
+ rules]]))
Original file line number Diff line number Diff line change 329
329
:<- [:communities ]
330
330
(fn [communities [_ id]]
331
331
(get-in communities [id :images ])))
332
+
333
+ (re-frame/reg-sub
334
+ :communities/rules
335
+ :<- [:communities ]
336
+ (fn [communities [_ community-id]]
337
+ (get-in communities [community-id :intro-message ])))
You can’t perform that action at this time.
0 commit comments