File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 5
5
[react-native.core :as rn]
6
6
[status-im.common.not-implemented]
7
7
[status-im.common.scalable-avatar.view :as avatar]
8
+ [status-im.constants :as constants]
8
9
[status-im.contexts.profile.contact.contact-request.view :as contact-request]
9
10
[status-im.contexts.profile.contact.header.style :as style]
10
11
[status-im.contexts.profile.utils :as profile.utils]
14
15
(defn view
15
16
[{:keys [scroll-y]}]
16
17
(let [{:keys [public-key customization-color
17
- emoji-hash bio]
18
+ emoji-hash bio contact-request-state ]
18
19
:as profile} (rf/sub [:contacts/current-contact ])
19
20
customization-color (or customization-color :blue )
20
21
full-name (profile.utils/displayed-name profile)
37
38
:description :text
38
39
:description-text bio
39
40
:emoji-dash emoji-hash}]
40
- [rn/view {:style style/button-wrapper}
41
- [quo/button
42
- {:on-press on-contact-request
43
- :icon-left :i/add-user }
44
- (i18n/label :t/send-contact-request )]]]))
41
+
42
+ (cond
43
+ (or (not contact-request-state)
44
+ (= contact-request-state constants/contact-request-state-none))
45
+ [rn/view {:style style/button-wrapper}
46
+ [quo/button
47
+ {:on-press on-contact-request
48
+ :icon-left :i/add-user }
49
+ (i18n/label :t/send-contact-request )]]
50
+
51
+ :else nil )]))
You can’t perform that action at this time.
0 commit comments