about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadFollowBtn.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-07-23 15:01:04 +0100
committerGitHub <noreply@github.com>2024-07-23 15:01:04 +0100
commit27d712290a908fcb471c59a8e5c8e95bd862c49c (patch)
treee39aa55d097725fd9fcd448198d62a0c02b4966f /src/view/com/post-thread/PostThreadFollowBtn.tsx
parent59bafb426ff018a3b8a92dee8994c5413fb30076 (diff)
downloadvoidsky-27d712290a908fcb471c59a8e5c8e95bd862c49c.tar.zst
Use appropriate icons for toasts (#4803)
* use appropriate icons for toasts

* use info for session expiry

* tweak size

* message -> safeMessage

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/view/com/post-thread/PostThreadFollowBtn.tsx')
-rw-r--r--src/view/com/post-thread/PostThreadFollowBtn.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadFollowBtn.tsx b/src/view/com/post-thread/PostThreadFollowBtn.tsx
index 1f70f41c4..6b6316eec 100644
--- a/src/view/com/post-thread/PostThreadFollowBtn.tsx
+++ b/src/view/com/post-thread/PostThreadFollowBtn.tsx
@@ -96,7 +96,7 @@ function PostThreadFollowBtnLoaded({
         } catch (e: any) {
           if (e?.name !== 'AbortError') {
             logger.error('Failed to follow', {message: String(e)})
-            Toast.show(_(msg`There was an issue! ${e.toString()}`))
+            Toast.show(_(msg`There was an issue! ${e.toString()}`), 'xmark')
           }
         }
       })
@@ -108,7 +108,7 @@ function PostThreadFollowBtnLoaded({
         } catch (e: any) {
           if (e?.name !== 'AbortError') {
             logger.error('Failed to unfollow', {message: String(e)})
-            Toast.show(_(msg`There was an issue! ${e.toString()}`))
+            Toast.show(_(msg`There was an issue! ${e.toString()}`), 'xmark')
           }
         }
       })