UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

25 lines 998 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { BaseComponent, css } from '../../Utilities'; import { notifyHostChanged } from './Layer.notification'; var LayerHost = /** @class */ (function (_super) { tslib_1.__extends(LayerHost, _super); function LayerHost() { return _super !== null && _super.apply(this, arguments) || this; } LayerHost.prototype.shouldComponentUpdate = function () { return false; }; LayerHost.prototype.componentDidMount = function () { notifyHostChanged(this.props.id); }; LayerHost.prototype.componentWillUnmount = function () { notifyHostChanged(this.props.id); }; LayerHost.prototype.render = function () { return React.createElement("div", tslib_1.__assign({}, this.props, { className: css('ms-LayerHost', this.props.className) })); }; return LayerHost; }(BaseComponent)); export { LayerHost }; //# sourceMappingURL=LayerHost.js.map