ref(ToolbarButton): Remove unnecessary check.

This commit is contained in:
hristoterezov 2017-07-26 16:21:52 -05:00 committed by virtuacoplenny
parent f18b42b286
commit 53f675fbe0
1 changed files with 18 additions and 25 deletions

View File

@ -10,10 +10,7 @@ import {
} from '../../../../modules/UI/util/Tooltip';
import AbstractToolbarButton from './AbstractToolbarButton';
import {
getButtonAttributesByProps,
isButtonEnabled
} from '../functions';
import { getButtonAttributesByProps } from '../functions';
declare var APP: Object;
@ -211,9 +208,6 @@ class ToolbarButton extends AbstractToolbarButton {
*/
_setShortcutAndTooltip(): void {
const { button, tooltipPosition } = this.props;
const name = button.buttonName;
if (isButtonEnabled(name)) {
if (!button.unclickable) {
if (button.tooltipText) {
@ -236,7 +230,6 @@ class ToolbarButton extends AbstractToolbarButton {
);
}
}
}
}
export default translate(ToolbarButton);