mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
bc916a2530
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
18 lines
556 B
CoffeeScript
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
|