office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
28 lines • 1.94 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { IconButton } from 'office-ui-fabric-react/lib/Button';
import { TooltipHost } from 'office-ui-fabric-react/lib/Tooltip';
import './GettingStartedPage.scss';
import { PageMarkdown } from '@uifabric/example-app-base';
var GettingStartedPage = /** @class */ (function (_super) {
tslib_1.__extends(GettingStartedPage, _super);
function GettingStartedPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
GettingStartedPage.prototype.render = function () {
return (React.createElement("div", { className: 'ms-GettingStartedPage' },
React.createElement("div", { className: 'ms-GettingStartedPage-banner' },
React.createElement("div", { className: 'ms-GettingStartedPage-title' },
React.createElement("h1", null, "office-ui-fabric-react"),
React.createElement("h3", null, "A library of reusable, generic React components")),
this._getEditButton()),
React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/demo/docs/GettingStartedOverview.md'))));
};
GettingStartedPage.prototype._getEditButton = function () {
return (React.createElement(TooltipHost, { key: "GettingStartedPage-editButton", content: "Edit Getting Started Page on GitHub", id: "GettingStartedPage-editButtonHost" },
React.createElement(IconButton, { "aria-describedby": "GettingStartedPage-editButtonHost", iconProps: { iconName: 'Edit' }, href: 'https://github.com/OfficeDev/office-ui-fabric-react/edit/master/packages/office-ui-fabric-react/src/demo/docs/GettingStartedOverview.md', target: '_blank', rel: 'noopener noreferrer' })));
};
return GettingStartedPage;
}(React.Component));
export { GettingStartedPage };
//# sourceMappingURL=GettingStartedPage.js.map