Mailspring/internal_packages/composer/lib/new-compose-button.cjsx
Evan Morikawa 033008e036 feat(tooltip): add informational tooltip component
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
2015-03-12 18:09:10 -04:00

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()