Skip to content

Commit b8c9d2a

Browse files
[#18963] fix: address reviewer feedbacks
1 parent ee3906e commit b8c9d2a

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 numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(ns status-im.contexts.profile.contact.view
22
(:require [quo.foundations.colors :as colors]
33
[quo.theme]
4+
[react-native.core :as rn]
45
[react-native.reanimated :as reanimated]
56
[status-im.common.scroll-page.view :as scroll-page]
67
[status-im.contexts.profile.contact.actions.view :as actions]
@@ -11,7 +12,11 @@
1112
[]
1213
(let [{:keys [customization-color]} (rf/sub [:contacts/current-contact])
1314
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])}])))]
1520
[scroll-page/scroll-page
1621
{:navigate-back? true
1722
:height 148
@@ -20,8 +25,5 @@
2025
:cover-color (or customization-color colors/primary-50)
2126
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
2227
: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}]}}
2729
[contact-header/view {:scroll-y scroll-y}]]))

0 commit comments

Comments
 (0)