fix lint
This commit is contained in:
parent
d8a770b5b3
commit
e69c7057bd
1 changed files with 17 additions and 5 deletions
|
@ -104,12 +104,21 @@ const SeoForm: React.FC<SeoFormProps> = props => {
|
|||
})}
|
||||
toolbar={
|
||||
<Button color="primary" variant="text" onClick={toggleExpansion}>
|
||||
<FormattedMessage defaultMessage="Edit website SEO" description="button" />
|
||||
<FormattedMessage
|
||||
defaultMessage="Edit website SEO"
|
||||
description="button"
|
||||
/>
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
<CardContent>
|
||||
{shouldDisplayHelperText() && <Typography className={classNames({ [classes.helperText]: expanded })}>{helperText}</Typography>}
|
||||
{shouldDisplayHelperText() && (
|
||||
<Typography
|
||||
className={classNames({ [classes.helperText]: expanded })}
|
||||
>
|
||||
{helperText}
|
||||
</Typography>
|
||||
)}
|
||||
{expanded && (
|
||||
<div className={classes.container}>
|
||||
<TextField
|
||||
|
@ -134,7 +143,8 @@ const SeoForm: React.FC<SeoFormProps> = props => {
|
|||
</div>
|
||||
}
|
||||
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<SeoFormProps> = props => {
|
|||
</div>
|
||||
}
|
||||
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<SeoFormProps> = props => {
|
|||
</div>
|
||||
}
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue