Mailspring/internal_packages/message-list/lib/thread-archive-button.cjsx
Ben Gotow 91edef9f7a fix(naming): Move atom/inbox/nilas refs to Nylas
Conflicts:
	internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
2015-05-15 11:07:28 -07:00

22 lines
571 B
CoffeeScript

_ = require 'underscore-plus'
React = require 'react'
{Actions, Utils} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
class ArchiveButton extends React.Component
@displayName: "ArchiveButton"
render: =>
<button className="btn btn-toolbar btn-archive"
data-tooltip="Archive"
onClick={@_onArchive}>
<RetinaImg name="toolbar-archive.png" />
</button>
_onArchive: (e) =>
return unless Utils.nodeIsVisible(e.currentTarget)
Actions.archive()
e.stopPropagation()
module.exports = ArchiveButton