From def02aec1227cf304ba2f51347357ff85309d9ee Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 2 Nov 2020 17:25:56 +0000 Subject: [PATCH] Update copy on some toasts --- src/toasts/DesktopNotificationsToast.ts | 10 +++++----- src/toasts/UpdateToast.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/toasts/DesktopNotificationsToast.ts b/src/toasts/DesktopNotificationsToast.ts index d8aa7647a3..e10a6d46c6 100644 --- a/src/toasts/DesktopNotificationsToast.ts +++ b/src/toasts/DesktopNotificationsToast.ts @@ -29,15 +29,15 @@ const onReject = () => { const TOAST_KEY = "desktopnotifications"; -export const showToast = () => { +export const showToast = (fromMessageSend: boolean) => { ToastStore.sharedInstance().addOrReplaceToast({ key: TOAST_KEY, - title: _t("Notifications"), + title: fromMessageSend ? _t("Don't miss a reply") : _t("Notifications"), props: { - description: _t("You are not receiving desktop notifications"), - acceptLabel: _t("Enable them now"), + description: _t("Enable desktop notifications"), + acceptLabel: _t("Enable"), onAccept, - rejectLabel: _t("Close"), + rejectLabel: _t("Dismiss"), onReject, }, component: GenericToast, diff --git a/src/toasts/UpdateToast.tsx b/src/toasts/UpdateToast.tsx index dfd06cf3a0..eb35c41512 100644 --- a/src/toasts/UpdateToast.tsx +++ b/src/toasts/UpdateToast.tsx @@ -74,18 +74,18 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st }; } else { onAccept = installUpdate; - acceptLabel = _t("Restart"); + acceptLabel = _t("Update"); } const brand = SdkConfig.get().brand; ToastStore.sharedInstance().addOrReplaceToast({ key: TOAST_KEY, - title: _t("Upgrade your %(brand)s", { brand }), + title: _t("Update %(brand)s", { brand }), props: { - description: _t("A new version of %(brand)s is available!", { brand }), + description: _t("New version of %(brand)s is available", { brand }), acceptLabel, onAccept, - rejectLabel: _t("Later"), + rejectLabel: _t("Dismiss"), onReject, }, component: GenericToast,