UNPKG

inversify-devtools

Version:
23 lines (22 loc) 1.05 kB
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var React = require("react"); var Panel = (function (_super) { __extends(Panel, _super); function Panel(props) { _super.call(this, props); } Panel.prototype.render = function () { var rowSize = 12; var columnSize = this.props.columnSize; var size = (100 / (rowSize / columnSize)).toFixed(2) + "%"; return (React.createElement("div", {className: "panel", style: { height: this.props.height, width: size }}, React.createElement("div", {className: "title"}, React.createElement("h6", null, this.props.subtitle), React.createElement("h2", null, this.props.title)), this.props.children)); }; return Panel; }(React.Component)); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Panel;