Skip to content

Commit a90ea68

Browse files
committed
feature: add send-contact-request button on contact profile
1 parent 894baad commit a90ea68

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/status_im/contexts/profile/contact/header/style.cljs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
:padding-left 20
88
:align-items :flex-start})
99

10+
(def button-wrapper
11+
{:padding-top 8
12+
:padding-bottom 16
13+
:padding-horizontal 20})
14+
1015
(defn header-container
1116
[border-radius theme margin-top]
1217
(reanimated/apply-animations-to-style

src/status_im/contexts/profile/contact/header/view.cljs

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
[quo.foundations.colors :as colors]
44
[quo.theme]
55
[react-native.core :as rn]
6+
[status-im.common.not-implemented]
67
[status-im.common.scalable-avatar.view :as avatar]
78
[status-im.contexts.profile.contact.header.style :as style]
89
[status-im.contexts.profile.utils :as profile.utils]
10+
[utils.i18n :as i18n]
911
[utils.re-frame :as rf]))
1012

1113
(defn view
@@ -31,4 +33,9 @@
3133
{:title full-name
3234
:description :text
3335
:description-text bio
34-
:emoji-dash emoji-hash}]]))
36+
:emoji-dash emoji-hash}]
37+
[rn/view {:style style/button-wrapper}
38+
[quo/button
39+
{:on-press status-im.common.not-implemented/alert
40+
:icon-left :i/add-user}
41+
(i18n/label :t/send-contact-request)]]]))

0 commit comments

Comments
 (0)