File tree 3 files changed +37
-3
lines changed
src/status_im/contexts/profile/contact
3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change
1
+ (ns status-im.contexts.profile.contact.actions.view
2
+ (:require [quo.core :as quo]
3
+ [status-im.common.not-implemented :as not-implemented]
4
+ [utils.i18n :as i18n]))
5
+
6
+ (defn view
7
+ []
8
+ [quo/action-drawer
9
+ [[{:icon :i/edit
10
+ :label (i18n/label :t/add-nickname-title )
11
+ :on-press not-implemented/alert
12
+ :accessibility-label :add-nickname }
13
+ {:icon :i/qr-code
14
+ :label (i18n/label :t/show-qr )
15
+ :on-press not-implemented/alert
16
+ :accessibility-label :show-qr-code }
17
+ {:icon :i/share
18
+ :label (i18n/label :t/share-profile )
19
+ :on-press not-implemented/alert
20
+ :accessibility-label :share-profile }
21
+ {:icon :i/untrustworthy
22
+ :label (i18n/label :t/mark-untrustworthy )
23
+ :on-press not-implemented/alert
24
+ :accessibility-label :mark-untrustworthy
25
+ :add-divider? true
26
+ :danger? true }
27
+ {:icon :i/block
28
+ :label (i18n/label :t/block-user )
29
+ :on-press not-implemented/alert
30
+ :accessibility-label :block-user
31
+ :danger? true }]]])
Original file line number Diff line number Diff line change 2
2
(:require [quo.foundations.colors :as colors]
3
3
[quo.theme]
4
4
[react-native.reanimated :as reanimated]
5
- [status-im.common.not-implemented :as not-implemented]
6
5
[status-im.common.scroll-page.view :as scroll-page]
6
+ [status-im.contexts.profile.contact.actions.view :as actions]
7
7
[status-im.contexts.profile.contact.header.view :as contact-header]
8
8
[utils.re-frame :as rf]))
9
9
20
20
:cover-color (or customization-color colors/primary-50)
21
21
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
22
22
:page-nav-props {:right-side [{:icon-name :i/options
23
- :on-press not-implemented/alert}]}}
23
+ :on-press (fn []
24
+ (rf/dispatch [:show-bottom-sheet
25
+ {:content (fn []
26
+ [actions/view])}]))}]}}
24
27
[contact-header/view {:scroll-y scroll-y}]]))
Original file line number Diff line number Diff line change 2063
2063
"and" : " and" ,
2064
2064
"rename" : " Rename" ,
2065
2065
"mark-untrustworthy" : " Mark as Untrustworthy" ,
2066
- "block-user" : " Block User " ,
2066
+ "block-user" : " Block user " ,
2067
2067
"group-details" : " Group details" ,
2068
2068
"edit-name-and-image" : " Edit name and image" ,
2069
2069
"change-group-privacy" : " Change group privacy" ,
You can’t perform that action at this time.
0 commit comments