Mailspring/internal_packages/composer/lib/compose-button.cjsx
Ben Gotow bc916a2530 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

18 lines
556 B
CoffeeScript

React = require 'react'
{Message, Actions, NamespaceStore} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
class ComposeButton extends React.Component
@displayName: 'ComposeButton'
render: =>
<button style={order: 101}
className="btn btn-toolbar"
data-tooltip="Compose new message"
onClick={@_onNewCompose}>
<RetinaImg name="toolbar-compose.png" mode={RetinaImg.Mode.ContentIsMask}/>
</button>
_onNewCompose: => Actions.composeNewBlankDraft()
module.exports = ComposeButton