Conform to new react and typescript eslint rules

This commit is contained in:
Michael Telatynski 2021-07-19 22:43:11 +01:00
parent b6feaf74bc
commit ce78cdf4ad
266 changed files with 1992 additions and 2000 deletions

View file

@ -37,7 +37,7 @@ export const showToast = (limitType: string, onHideToast: () => void, adminConta
key: TOAST_KEY,
title: _t("Warning"),
props: {
description: <React.Fragment>{errorText} {contactText}</React.Fragment>,
description: <React.Fragment>{ errorText } { contactText }</React.Fragment>,
acceptLabel: _t("Ok"),
onAccept: () => {
hideToast();

View file

@ -51,7 +51,7 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
onAccept = () => {
Modal.createTrackedDialog('Display release notes', '', QuestionDialog, {
title: _t("What's New"),
description: <pre>{releaseNotes}</pre>,
description: <pre>{ releaseNotes }</pre>,
button: _t("Update"),
onFinished: (update) => {
if (update && PlatformPeg.get()) {