Updating ESLint (#4085)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
214f9c13a2
Коммит
93f2b6a833
@@ -87,7 +87,7 @@ class PostAttachment extends React.Component {
|
||||
return '';
|
||||
}
|
||||
|
||||
let fieldTables = [];
|
||||
const fieldTables = [];
|
||||
|
||||
let headerCols = [];
|
||||
let bodyCols = [];
|
||||
@@ -104,7 +104,7 @@ class PostAttachment extends React.Component {
|
||||
>
|
||||
<thead>
|
||||
<tr>
|
||||
{headerCols}
|
||||
{headerCols}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -134,8 +134,7 @@ class PostAttachment extends React.Component {
|
||||
className='attachment-field'
|
||||
key={'attachment__field-' + i + '__' + nrTables}
|
||||
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(field.value || '')}}
|
||||
>
|
||||
</td>
|
||||
/>
|
||||
);
|
||||
rowPos += 1;
|
||||
lastWasLong = !(field.short === true);
|
||||
@@ -175,8 +174,7 @@ class PostAttachment extends React.Component {
|
||||
<div
|
||||
className='attachment__thumb-pretext'
|
||||
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(data.pretext)}}
|
||||
>
|
||||
</div>
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -250,8 +248,7 @@ class PostAttachment extends React.Component {
|
||||
<div
|
||||
className='attachment__text'
|
||||
dangerouslySetInnerHTML={{__html: this.state.text}}
|
||||
>
|
||||
</div>
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -307,7 +304,7 @@ class PostAttachment extends React.Component {
|
||||
{fields}
|
||||
</div>
|
||||
{thumb}
|
||||
<div style={{clear: 'both'}}></div>
|
||||
<div style={{clear: 'both'}}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ import React from 'react';
|
||||
|
||||
export default class PostAttachmentList extends React.Component {
|
||||
render() {
|
||||
let content = [];
|
||||
const content = [];
|
||||
this.props.attachments.forEach((attachment, i) => {
|
||||
content.push(
|
||||
<PostAttachment
|
||||
|
||||
@@ -169,7 +169,7 @@ export default class PostBody extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
let messageWrapper = (
|
||||
const messageWrapper = (
|
||||
<div
|
||||
key={`${post.id}_message`}
|
||||
id={`${post.id}_message`}
|
||||
|
||||
@@ -174,7 +174,7 @@ export default class PostBodyAdditionalContent extends React.Component {
|
||||
}
|
||||
|
||||
if (this.isLinkToggleable()) {
|
||||
let messageWithToggle = [];
|
||||
const messageWithToggle = [];
|
||||
|
||||
// if message has only one line and starts with a link place toggle in this only line
|
||||
// else - place it in new line between message and embed
|
||||
|
||||
@@ -67,7 +67,7 @@ export default class PostViewCache extends React.Component {
|
||||
const channels = this.state.channels;
|
||||
const currentChannelId = this.state.currentChannelId;
|
||||
|
||||
let postViews = [];
|
||||
const postViews = [];
|
||||
for (let i = 0; i < channels.length; i++) {
|
||||
postViews.push(
|
||||
<PostViewController
|
||||
|
||||
Ссылка в новой задаче
Block a user