mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(lint): Errors in ActionBarPlugins
This commit is contained in:
parent
ac29c99f32
commit
739d23ffe5
2 changed files with 6 additions and 7 deletions
|
@ -3,14 +3,14 @@ import classnames from 'classnames'
|
|||
import {ComponentRegistry} from 'nylas-exports'
|
||||
import {InjectedComponentSet} from 'nylas-component-kit'
|
||||
|
||||
const ROLE = "Composer:ActionButton";
|
||||
|
||||
export default class ActionBarPlugins extends React.Component {
|
||||
static displayName = "ActionBarPlugins";
|
||||
|
||||
static ROLE = "Composer:ActionButton"
|
||||
|
||||
static propTypes = {
|
||||
draft: React.PropTypes.object,
|
||||
session: React.PropTypes.session,
|
||||
session: React.PropTypes.object,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
|
@ -43,8 +43,7 @@ export default class ActionBarPlugins extends React.Component {
|
|||
}
|
||||
|
||||
_getPluginsLength() {
|
||||
const role = ActionBarPlugins.ROLE
|
||||
return ComponentRegistry.findComponentsMatching({role}).length;
|
||||
return ComponentRegistry.findComponentsMatching({role: ROLE}).length;
|
||||
}
|
||||
|
||||
_getStateFromStores() {
|
||||
|
@ -64,7 +63,7 @@ export default class ActionBarPlugins extends React.Component {
|
|||
<div className="action-bar-cover"></div>
|
||||
<InjectedComponentSet
|
||||
className="composer-action-bar-plugins"
|
||||
matching={{role: ActionBarPlugins.ROLE}}
|
||||
matching={{role: ROLE}}
|
||||
exposedProps={{
|
||||
draft: this.props.draft,
|
||||
threadId: this.props.draft.threadId,
|
||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
|||
Subproject commit d319f5b3fbf909f9b074be833c54c58bdb627ad0
|
||||
Subproject commit f56b3c7ef0fd15d07560ae5e5581d07e166b6cc4
|
Loading…
Reference in a new issue