File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/status_im/common/home/actions Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 132
132
133
133
(defn mark-as-untrusted-action
134
134
[{:keys [public-key primary-name] :as item}]
135
+ (tap> item)
135
136
(hide-sheet-and-dispatch
136
137
[:show-bottom-sheet
137
138
{:content (fn []
138
139
[confirmation-drawer/confirmation-drawer
139
140
{:title (i18n/label :t/mark-as-untrusted )
140
141
:description (i18n/label :t/mark-as-untrusted-description
141
142
{:username (:primary-name item)})
143
+ :extra-action (fn []
144
+ (rf/dispatch [:toasts/upsert
145
+ {:id :remove-contact
146
+ :type :positive
147
+ :text (->> (i18n/label :t/removed-from-contacts )
148
+ (string/lower-case )
149
+ (str primary-name " " ))}])
150
+ (rf/dispatch [:contact.ui/remove-contact-pressed item]))
151
+ :extra-text (i18n/label :t/remove-contact )
142
152
:context item
143
153
:accessibility-label :block-user
144
154
:button-text (i18n/label :t/mark-as-untrusted-button )
You can’t perform that action at this time.
0 commit comments