Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-22 22:29:09 +01:00
parent ccf9e65123
commit 29cfb47a83
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ const TOAST_KEY = "analytics";
export const showToast = (policyUrl?: string) => { export const showToast = (policyUrl?: string) => {
ToastStore.sharedInstance().addOrReplaceToast({ ToastStore.sharedInstance().addOrReplaceToast({
key: TOAST_KEY, key: TOAST_KEY,
title: _t("Notifications"), title: _t("Help us improve Riot"),
props: { props: {
description: _t( description: _t(
"Send <UsageDataLink>anonymous usage data</UsageDataLink> which helps us improve Riot. " + "Send <UsageDataLink>anonymous usage data</UsageDataLink> which helps us improve Riot. " +

View file

@ -34,14 +34,14 @@ export const showToast = (limitType: string, adminContact?: string, syncError?:
ToastStore.sharedInstance().addOrReplaceToast({ ToastStore.sharedInstance().addOrReplaceToast({
key: TOAST_KEY, key: TOAST_KEY,
title: _t("Notifications"), title: _t("Warning"),
props: { props: {
description: <React.Fragment>{errorText} {contactText}</React.Fragment>, description: <React.Fragment>{errorText} {contactText}</React.Fragment>,
acceptLabel: _t("Ok"), acceptLabel: _t("Ok"),
onAccept: hideToast, onAccept: hideToast,
}, },
component: GenericToast, component: GenericToast,
priority: 20, priority: 70,
}); });
}; };