Mailspring/internal_packages/message-list/lib/thread-archive-button.cjsx
Ben Gotow 5fbd881304 feat(theming): Definitely not hacker mode. I don't know what you're talking about.
Summary: Add docs for new RetinaImg modes

Test Plan: Not much to test, except that it looks good!

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1595
2015-06-05 11:40:44 -07:00

22 lines
601 B
CoffeeScript

_ = require 'underscore'
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" mode={RetinaImg.Mode.ContentIsMask}/>
</button>
_onArchive: (e) =>
return unless Utils.nodeIsVisible(e.currentTarget)
Actions.archive()
e.stopPropagation()
module.exports = ArchiveButton