mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +08:00
24 lines
700 B
Text
24 lines
700 B
Text
|
_ = require 'underscore-plus'
|
||
|
React = require 'react'
|
||
|
|
||
|
ThreadListMixin = require './thread-list-mixin.cjsx'
|
||
|
ThreadListNarrowItem = require './thread-list-narrow-item.cjsx'
|
||
|
|
||
|
module.exports =
|
||
|
ThreadListNarrow = React.createClass
|
||
|
displayName: 'ThreadListMixin'
|
||
|
mixins: [ThreadListMixin]
|
||
|
|
||
|
render: ->
|
||
|
<div tabIndex=1
|
||
|
className="thread-list-container thread-list-narrow">
|
||
|
{@_threadComponents()}
|
||
|
</div>
|
||
|
|
||
|
_threadComponents: ->
|
||
|
@state.threads.map (thread) =>
|
||
|
<ThreadListNarrowItem key={thread.id}
|
||
|
thread={thread}
|
||
|
unread={thread.isUnread()}
|
||
|
selected={thread?.id == @state?.selected}/>
|