File tree 1 file changed +7
-5
lines changed
src/status_im/contexts/profile/contact
1 file changed +7
-5
lines changed 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
6
[status-im.common.scroll-page.view :as scroll-page]
6
7
[status-im.contexts.profile.contact.actions.view :as actions]
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 (fn []
24
- (rf/dispatch [:show-bottom-sheet
25
- {:content (fn []
26
- [actions/view])}]))}]}}
28
+ :on-press on-action-press}]}}
27
29
[contact-header/view {:scroll-y scroll-y}]]))
You can’t perform that action at this time.
0 commit comments