Skip to content

Commit

Permalink
tweak: hide contact-request button if contact-request is already sent
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Mar 6, 2024
1 parent 7b35e13 commit 56851b8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/status_im/contexts/profile/contact/header/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@
:description :text
:description-text bio
:emoji-dash emoji-hash}]
[rn/view {:style style/button-wrapper}
[quo/button
{:on-press on-contact-request
:icon-left :i/add-user}
(i18n/label :t/send-contact-request)]]]))

(cond
(or (not contact-request-state)
(= contact-request-state constants/contact-request-state-none))
[rn/view {:style style/button-wrapper}
[quo/button
{:on-press on-contact-request
:icon-left :i/add-user}
(i18n/label :t/send-contact-request)]]

:else nil)]))

0 comments on commit 56851b8

Please sign in to comment.