Partially prepare for eslint-plugin-flowtype 2.37.0

This commit is contained in:
Lyubo Marinov
2017-10-03 14:24:00 -05:00
parent 8f97da3265
commit 5561a9c031
10 changed files with 119 additions and 94 deletions

View File

@@ -1,3 +1,5 @@
// @flow
import SideContainerToggler
from '../../../modules/UI/side_pannels/SideContainerToggler';
@@ -101,7 +103,7 @@ export function getToolbarClassNames(props: Object) {
* @returns {boolean} - True to indicate that the given toolbar button
* is enabled, false - otherwise.
*/
export function isButtonEnabled(name) {
export function isButtonEnabled(name: string) {
return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1
|| interfaceConfig.MAIN_TOOLBAR_BUTTONS.indexOf(name) !== -1;
}