Skip to content

Commit 4c4c1ee

Browse files
committed
[Fix] Icon name in Toast
Signed-off-by: Mohamed Javid <[email protected]>
1 parent 6871b12 commit 4c4c1ee

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/status_im2/common/home/actions/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
(rf/dispatch [:hide-bottom-sheet])
220220
(rf/dispatch [:toasts/upsert
221221
{:id :remove-nickname
222-
:icon :correct
222+
:icon :i/correct
223223
:icon-color (colors/theme-colors colors/success-60
224224
colors/success-50)
225225
:text (i18n/label

src/status_im2/contexts/chat/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
:t/channel-unmuted-successfully))))]
353353
{:db (assoc-in db [:chats chat-id :muted-till] muted-till)
354354
:dispatch [:toasts/upsert
355-
{:icon :correct
355+
{:icon :i/correct
356356
:icon-color (colors/theme-colors colors/success-60
357357
colors/success-50)
358358
:text (mute-duration-text (when (some? muted-till)

src/status_im2/contexts/chat/lightbox/top_view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
uri
5858
#(rf/dispatch [:toasts/upsert
5959
{:id :random-id
60-
:icon :correct
60+
:icon :i/correct
6161
:icon-color colors/success-50
6262
:container-style {:bottom (when platform/android? 20)}
6363
:text (i18n/label :t/photo-saved)}])))}]]]))

src/status_im2/contexts/chat/messages/delete_message/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
[[:toasts/close :delete-message-for-everyone]
108108
[:toasts/upsert
109109
{:id :delete-message-for-everyone
110-
:icon :info
110+
:icon :i/info
111111
:icon-color colors/danger-50-opa-40
112112
:message-deleted-for-everyone-count toast-count
113113
:message-deleted-for-everyone-undos existing-undos

src/status_im2/contexts/chat/messages/delete_message_for_me/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
:dispatch-n [[:toasts/close :delete-message-for-me]
6363
[:toasts/upsert
6464
{:id :delete-message-for-me
65-
:icon :info
65+
:icon :i/info
6666
:icon-color colors/danger-50-opa-40
6767
:message-deleted-for-me-count toast-count
6868
:message-deleted-for-me-undos existing-undos

src/status_im2/contexts/chat/photo_selector/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
[]
2424
(rf/dispatch [:toasts/upsert
2525
{:id :random-id
26-
:icon :info
26+
:icon :i/info
2727
:icon-color colors/danger-50-opa-40
2828
:container-style {:top (when platform/ios? 20)}
2929
:text (i18n/label :t/only-6-images)}]))

src/status_im2/contexts/quo_preview/notifications/toast.cljs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
:undo-duration 4
3636
:undo-on-press #(do
3737
(rf/dispatch [:toasts/upsert
38-
{:icon :correct
38+
{:icon :i/correct
3939
:icon-color colors/success-50-opa-40
4040
:text "Undo pressed"}])
4141
(rf/dispatch [:toasts/close
@@ -54,7 +54,7 @@
5454
#(do
5555
(rf/dispatch
5656
[:toasts/upsert
57-
{:icon :correct :icon-color colors/success-50-opa-40 :text "Undo pressed"}])
57+
{:icon :i/correct :icon-color colors/success-50-opa-40 :text "Undo pressed"}])
5858
(rf/dispatch [:toasts/close "Toast: with undo action"]))}])
5959

6060
(defn toast-button-30s-duration
@@ -79,7 +79,7 @@
7979
#(rf/dispatch
8080
[:toasts/upsert
8181
{:id "Toast: 30s duration"
82-
:icon :info
82+
:icon :i/info
8383
:icon-color colors/danger-50-opa-40
8484
:text (str "This is an updated example toast" " - " (swap! suffix inc))
8585
:duration 3000}])}

src/status_im2/contexts/syncing/setup_syncing/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
{:on-press (fn []
119119
(clipboard/set-string @code)
120120
(rf/dispatch [:toasts/upsert
121-
{:icon :correct
121+
{:icon :i/correct
122122
:icon-color colors/success-50
123123
:text (i18n/label
124124
:t/sharing-copied-to-clipboard)}]))

0 commit comments

Comments
 (0)