fix frontend linting errors

This commit is contained in:
igoradamenko
2019-01-05 22:24:37 +02:00
parent 87b5799a53
commit 9dc83f5261
2 changed files with 5 additions and 7 deletions
+1 -4
View File
@@ -439,10 +439,7 @@ export default class Comment extends Component {
<article className={b('comment', props, defaultMods)}>
<div className="comment__body">
<div className="comment__title">
<a
className="comment__title-link"
href={`${o.locator.url}#${COMMENT_NODE_CLASSNAME_PREFIX}${o.id}`}
>
<a className="comment__title-link" href={`${o.locator.url}#${COMMENT_NODE_CLASSNAME_PREFIX}${o.id}`}>
{o.title}
</a>
</div>
+4 -3
View File
@@ -73,9 +73,10 @@ export default class Input extends Component {
this.setState({ isDisabled: true, isErrorShown: false });
const request = mods.mode === 'edit'
? api.updateComment({ text, id })
: api.addComment({ title: pageTitle || document.title, text, ...(pid ? { pid } : {}) });
const request =
mods.mode === 'edit'
? api.updateComment({ text, id })
: api.addComment({ title: pageTitle || document.title, text, ...(pid ? { pid } : {}) });
request
.then(comment => {