Update copy on some toasts
This commit is contained in:
parent
0c14de3017
commit
def02aec12
2 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue