Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit def02ae

Browse files
committed
Update copy on some toasts
1 parent 0c14de3 commit def02ae

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/toasts/DesktopNotificationsToast.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ const onReject = () => {
2929

3030
const TOAST_KEY = "desktopnotifications";
3131

32-
export const showToast = () => {
32+
export const showToast = (fromMessageSend: boolean) => {
3333
ToastStore.sharedInstance().addOrReplaceToast({
3434
key: TOAST_KEY,
35-
title: _t("Notifications"),
35+
title: fromMessageSend ? _t("Don't miss a reply") : _t("Notifications"),
3636
props: {
37-
description: _t("You are not receiving desktop notifications"),
38-
acceptLabel: _t("Enable them now"),
37+
description: _t("Enable desktop notifications"),
38+
acceptLabel: _t("Enable"),
3939
onAccept,
40-
rejectLabel: _t("Close"),
40+
rejectLabel: _t("Dismiss"),
4141
onReject,
4242
},
4343
component: GenericToast,

src/toasts/UpdateToast.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
7474
};
7575
} else {
7676
onAccept = installUpdate;
77-
acceptLabel = _t("Restart");
77+
acceptLabel = _t("Update");
7878
}
7979

8080
const brand = SdkConfig.get().brand;
8181
ToastStore.sharedInstance().addOrReplaceToast({
8282
key: TOAST_KEY,
83-
title: _t("Upgrade your %(brand)s", { brand }),
83+
title: _t("Update %(brand)s", { brand }),
8484
props: {
85-
description: _t("A new version of %(brand)s is available!", { brand }),
85+
description: _t("New version of %(brand)s is available", { brand }),
8686
acceptLabel,
8787
onAccept,
88-
rejectLabel: _t("Later"),
88+
rejectLabel: _t("Dismiss"),
8989
onReject,
9090
},
9191
component: GenericToast,

0 commit comments

Comments
 (0)