UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

31 lines 1.34 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var styles_1 = require("@material-ui/core/styles"); var React = require("react"); var __1 = require("../.."); var web_1 = require("../../utils/web"); var ThemeProvider = /** @class */ (function (_super) { __extends(ThemeProvider, _super); function ThemeProvider(props) { var _this = _super.call(this, props) || this; _this.theme = styles_1.createMuiTheme(web_1.getMuiTheme(__1.appTheme)); return _this; } ThemeProvider.prototype.render = function () { var children = this.props.children; return (React.createElement(styles_1.MuiThemeProvider, { theme: this.theme }, children)); }; return ThemeProvider; }(React.PureComponent)); exports.ThemeProvider = ThemeProvider; //# sourceMappingURL=ThemeProvider.js.map