Mailspring/internal_packages/composer/lib/compose-button.jsx
Evan Morikawa 2d2e459094 fix(lint): final linter fixes
fix(lint): final set of linter fixes
2016-05-06 16:32:34 -07:00

23 lines
566 B
JavaScript

import React from 'react';
import {Actions} from 'nylas-exports';
import {RetinaImg} from 'nylas-component-kit';
export default class ComposeButton extends React.Component {
static displayName = 'ComposeButton';
_onNewCompose = () => {
Actions.composeNewBlankDraft()
}
render() {
return (
<button
className="btn btn-toolbar item-compose"
title="Compose new message"
onClick={this._onNewCompose}
>
<RetinaImg name="toolbar-compose.png" mode={RetinaImg.Mode.ContentIsMask} />
</button>
);
}
}