UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

25 lines 1.47 kB
define(["require", "exports", "tslib", "react", "../../../Utilities", "../../../Styling", "../BaseButton", "./PrimaryButton.styles"], function (require, exports, tslib_1, React, Utilities_1, Styling_1, BaseButton_1, PrimaryButton_styles_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var PrimaryButton = (function (_super) { tslib_1.__extends(PrimaryButton, _super); function PrimaryButton() { var _this = _super !== null && _super.apply(this, arguments) || this; /** * Set this BaseComponent._resolveComponentRef to false, bypassing resolution of componentRef. */ _this._shouldUpdateComponentRef = false; return _this; } PrimaryButton.prototype.render = function () { var _a = this.props, theme = _a.theme, styles = _a.styles; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: 'ms-Button--primary', onRenderDescription: Utilities_1.nullRender, styles: PrimaryButton_styles_1.getStyles(theme, styles) }))); }; PrimaryButton = tslib_1.__decorate([ Utilities_1.customizable([Styling_1.ThemeSettingName]) ], PrimaryButton); return PrimaryButton; }(Utilities_1.BaseComponent)); exports.PrimaryButton = PrimaryButton; }); //# sourceMappingURL=PrimaryButton.js.map