diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2025-03-07 02:46:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 11:46:09 -0600 |
commit | a7db0bac6fa42a47f05b9ef5fabc05656a347f08 (patch) | |
tree | b44c29f5fb428f6aa353984fc5c930547ec85e16 /src/state | |
parent | 29eef6188ae4c00006ae759e1b3815b8bd091a87 (diff) | |
download | voidsky-a7db0bac6fa42a47f05b9ef5fabc05656a347f08.tar.zst |
Add context for toast messages (#7902)
* add context for toast * add
Diffstat (limited to 'src/state')
-rw-r--r-- | src/state/queries/notifications/settings.ts | 2 | ||||
-rw-r--r-- | src/state/queries/pinned-post.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/state/queries/notifications/settings.ts b/src/state/queries/notifications/settings.ts index e552b6520..2ac42aa32 100644 --- a/src/state/queries/notifications/settings.ts +++ b/src/state/queries/notifications/settings.ts @@ -41,7 +41,7 @@ export function useNotificationSettingsMutation() { ) }, onSuccess: () => { - Toast.show(_(msg`Preference saved`)) + Toast.show(_(msg({message: 'Preference saved', context: 'toast'}))) }, onSettled: () => { invalidateCachedUnreadPage() diff --git a/src/state/queries/pinned-post.ts b/src/state/queries/pinned-post.ts index 7e6fc6677..c3d9fd687 100644 --- a/src/state/queries/pinned-post.ts +++ b/src/state/queries/pinned-post.ts @@ -56,9 +56,9 @@ export function usePinnedPostMutation() { }) if (pinCurrentPost) { - Toast.show(_(msg`Post pinned`)) + Toast.show(_(msg({message: 'Post pinned', context: 'toast'}))) } else { - Toast.show(_(msg`Post unpinned`)) + Toast.show(_(msg({message: 'Post unpinned', context: 'toast'}))) } queryClient.invalidateQueries({ |