From e69c7057bda1313932c8192d99bd659628ff1c9a Mon Sep 17 00:00:00 2001 From: Magdalena Markusik Date: Mon, 21 Sep 2020 16:30:18 +0200 Subject: [PATCH] fix lint --- src/components/SeoForm/SeoForm.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/SeoForm/SeoForm.tsx b/src/components/SeoForm/SeoForm.tsx index 113a66b70..544f6f2d4 100644 --- a/src/components/SeoForm/SeoForm.tsx +++ b/src/components/SeoForm/SeoForm.tsx @@ -104,12 +104,21 @@ const SeoForm: React.FC = props => { })} toolbar={ } /> - {shouldDisplayHelperText() && {helperText}} + {shouldDisplayHelperText() && ( + + {helperText} + + )} {expanded && (
= props => {
} helperText={intl.formatMessage({ - defaultMessage: "If empty, the preview shows what will be autogenerated." + defaultMessage: + "If empty, the preview shows what will be autogenerated." })} value={slug?.slice(0, 69)} disabled={loading || disabled} @@ -165,7 +175,8 @@ const SeoForm: React.FC = props => { } helperText={intl.formatMessage({ - defaultMessage: "If empty, the preview shows what will be autogenerated." + defaultMessage: + "If empty, the preview shows what will be autogenerated." })} value={title?.slice(0, 69)} disabled={loading || disabled} @@ -196,7 +207,8 @@ const SeoForm: React.FC = props => { } helperText={intl.formatMessage({ - defaultMessage: "If empty, the preview shows what will be autogenerated." + defaultMessage: + "If empty, the preview shows what will be autogenerated." })} value={description?.slice(0, 299)} onChange={onChange}