mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
033008e036
Summary: Add tooltip. To use just add a data-tooltip="plain string" Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1288
15 lines
460 B
CoffeeScript
15 lines
460 B
CoffeeScript
React = require 'react'
|
|
{Message, Actions, NamespaceStore} = require 'inbox-exports'
|
|
{RetinaImg} = require 'ui-components'
|
|
|
|
module.exports =
|
|
NewComposeButton = React.createClass
|
|
render: ->
|
|
<button style={order: -100}
|
|
className="btn btn-toolbar"
|
|
data-tooltip="Compose new message"
|
|
onClick={@_onNewCompose}>
|
|
<RetinaImg name="toolbar-compose.png"/>
|
|
</button>
|
|
|
|
_onNewCompose: -> Actions.composeNewBlankDraft()
|