diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-23 15:01:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 15:01:04 +0100 |
commit | 27d712290a908fcb471c59a8e5c8e95bd862c49c (patch) | |
tree | e39aa55d097725fd9fcd448198d62a0c02b4966f /src/screens/Profile/Header | |
parent | 59bafb426ff018a3b8a92dee8994c5413fb30076 (diff) | |
download | voidsky-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/screens/Profile/Header')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 1 | ||||
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderStandard.tsx | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index 51e555a6e..a807c70dd 100644 --- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx +++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx @@ -116,6 +116,7 @@ let ProfileHeaderLabeler = ({ _( msg`There was an an issue contacting the server, please check your internet connection and try again.`, ), + 'xmark', ) logger.error(`Failed to toggle labeler like`, {message: e.message}) } diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index 4ad84ac63..b275b3191 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -104,7 +104,7 @@ let ProfileHeaderStandard = ({ } 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') } } }) @@ -126,7 +126,7 @@ let ProfileHeaderStandard = ({ } 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') } } }) @@ -140,7 +140,7 @@ let ProfileHeaderStandard = ({ } catch (e: any) { if (e?.name !== 'AbortError') { logger.error('Failed to unblock account', {message: e}) - Toast.show(_(msg`There was an issue! ${e.toString()}`)) + Toast.show(_(msg`There was an issue! ${e.toString()}`), 'xmark') } } }, [_, queueUnblock, track]) |