mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(lint): Address linter errors
This commit is contained in:
parent
dd7140ee1f
commit
7f84917675
2 changed files with 23 additions and 25 deletions
|
@ -137,8 +137,6 @@ class MessageList extends React.Component
|
|||
@_draftScrollInProgress = true
|
||||
draftElement.focus()
|
||||
@refs.messageWrap.scrollTo(draftElement, {
|
||||
position: ScrollRegion.ScrollPosition.Bottom,
|
||||
settle: true
|
||||
position: ScrollRegion.ScrollPosition.Top,
|
||||
settle: true,
|
||||
done: =>
|
||||
|
|
|
@ -169,30 +169,30 @@ class ThreadList extends React.Component
|
|||
|
||||
render: =>
|
||||
if @state.style is 'wide'
|
||||
<MultiselectList
|
||||
dataStore={ThreadListStore}
|
||||
columns={@wideColumns}
|
||||
commands={@commands}
|
||||
itemPropsProvider={@itemPropsProvider}
|
||||
itemHeight={39}
|
||||
className="thread-list"
|
||||
scrollTooltipComponent={ThreadListScrollTooltip}
|
||||
emptyComponent={EmptyState}
|
||||
onDragStart={@_onDragStart}
|
||||
onDragEnd={@_onDragEnd}
|
||||
draggable="true"
|
||||
collection="thread" />
|
||||
<MultiselectList
|
||||
dataStore={ThreadListStore}
|
||||
columns={@wideColumns}
|
||||
commands={@commands}
|
||||
itemPropsProvider={@itemPropsProvider}
|
||||
itemHeight={39}
|
||||
className="thread-list"
|
||||
scrollTooltipComponent={ThreadListScrollTooltip}
|
||||
emptyComponent={EmptyState}
|
||||
onDragStart={@_onDragStart}
|
||||
onDragEnd={@_onDragEnd}
|
||||
draggable="true"
|
||||
collection="thread" />
|
||||
else if @state.style is 'narrow'
|
||||
<MultiselectList
|
||||
dataStore={ThreadListStore}
|
||||
columns={@narrowColumns}
|
||||
commands={@commands}
|
||||
itemPropsProvider={@itemPropsProvider}
|
||||
itemHeight={90}
|
||||
className="thread-list thread-list-narrow"
|
||||
scrollTooltipComponent={ThreadListScrollTooltip}
|
||||
emptyComponent={EmptyState}
|
||||
collection="thread" />
|
||||
<MultiselectList
|
||||
dataStore={ThreadListStore}
|
||||
columns={@narrowColumns}
|
||||
commands={@commands}
|
||||
itemPropsProvider={@itemPropsProvider}
|
||||
itemHeight={90}
|
||||
className="thread-list thread-list-narrow"
|
||||
scrollTooltipComponent={ThreadListScrollTooltip}
|
||||
emptyComponent={EmptyState}
|
||||
collection="thread" />
|
||||
else
|
||||
<div></div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue