File tree 3 files changed +40
-4
lines changed
src/status_im/contexts/profile/contact
3 files changed +40
-4
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 1
1
(ns status-im.contexts.profile.contact.view
2
2
(:require [quo.foundations.colors :as colors]
3
3
[quo.theme]
4
+ [react-native.core :as rn]
4
5
[react-native.reanimated :as reanimated]
5
- [status-im.common.not-implemented :as not-implemented]
6
6
[status-im.common.scroll-page.view :as scroll-page]
7
+ [status-im.contexts.profile.contact.actions.view :as actions]
7
8
[status-im.contexts.profile.contact.header.view :as contact-header]
8
9
[utils.re-frame :as rf]))
9
10
10
11
(defn view
11
12
[]
12
13
(let [{:keys [customization-color]} (rf/sub [:contacts/current-contact ])
13
14
scroll-y (reanimated/use-shared-value 0 )
14
- theme (quo.theme/use-theme-value )]
15
+ theme (quo.theme/use-theme-value )
16
+ on-action-press (rn/use-callback (fn []
17
+ (rf/dispatch [:show-bottom-sheet
18
+ {:content (fn []
19
+ [actions/view])}])))]
15
20
[scroll-page/scroll-page
16
21
{:navigate-back? true
17
22
:height 148
20
25
:cover-color (or customization-color colors/primary-50)
21
26
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
22
27
:page-nav-props {:right-side [{:icon-name :i/options
23
- :on-press not-implemented/alert }]}}
28
+ :on-press on-action-press }]}}
24
29
[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