office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines (25 loc) • 1.4 kB
JavaScript
define(["require", "exports", "tslib", "react", "../BaseButton", "../../../Utilities", "../../../Styling", "./CommandButton.styles"], function (require, exports, tslib_1, React, BaseButton_1, Utilities_1, Styling_1, CommandButton_styles_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CommandButton = (function (_super) {
tslib_1.__extends(CommandButton, _super);
function CommandButton() {
var _this = _super !== null && _super.apply(this, arguments) || this;
/**
* Tell BaseComponent to bypass resolution of componentRef.
*/
_this._shouldUpdateComponentRef = false;
return _this;
}
CommandButton.prototype.render = function () {
var _a = this.props, styles = _a.styles, theme = _a.theme;
return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: 'ms-Button--command', styles: CommandButton_styles_1.getStyles(theme, styles), onRenderDescription: Utilities_1.nullRender })));
};
return CommandButton;
}(Utilities_1.BaseComponent));
CommandButton = tslib_1.__decorate([
Utilities_1.customizable([Styling_1.ThemeSettingName])
], CommandButton);
exports.CommandButton = CommandButton;
});
//# sourceMappingURL=CommandButton.js.map