1 | 'use strict';
|
2 |
|
3 | var _reactTransformHmr2 = require('react-transform-hmr');
|
4 |
|
5 | var _reactTransformHmr3 = _interopRequireDefault(_reactTransformHmr2);
|
6 |
|
7 | var _react = require('react');
|
8 |
|
9 | var _reactTransformCatchErrors2 = require('react-transform-catch-errors');
|
10 |
|
11 | var _reactTransformCatchErrors3 = _interopRequireDefault(_reactTransformCatchErrors2);
|
12 |
|
13 | var _redboxReact = require('redbox-react');
|
14 |
|
15 | var _components = {
|
16 | _$Unknown: {}
|
17 | };
|
18 |
|
19 | var _reactComponentWrapper = (0, _reactTransformHmr3['default'])({
|
20 | filename: 'src/Panel.jsx',
|
21 | components: _components,
|
22 | locals: [module],
|
23 | imports: [_react]
|
24 | });
|
25 |
|
26 | var _reactComponentWrapper2 = (0, _reactTransformCatchErrors3['default'])({
|
27 | filename: 'src/Panel.jsx',
|
28 | components: _components,
|
29 | locals: [],
|
30 | imports: [_react, _redboxReact]
|
31 | });
|
32 |
|
33 | function _wrapComponent(uniqueId) {
|
34 | return function (ReactClass) {
|
35 | return _reactComponentWrapper2(_reactComponentWrapper(ReactClass, uniqueId), uniqueId);
|
36 | };
|
37 | }
|
38 |
|
39 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
40 |
|
41 | var React = require('react');
|
42 |
|
43 | var Panel = _wrapComponent('_$Unknown')(React.createClass({
|
44 |
|
45 | shouldComponentUpdate: function shouldComponentUpdate(nextProps) {
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | return true;
|
55 | },
|
56 |
|
57 | render: function render() {
|
58 | var tmpl;
|
59 | return React.createElement(
|
60 | 'div',
|
61 | { className: this.props.className },
|
62 | this.props.children
|
63 | );
|
64 | }
|
65 | }));
|
66 |
|
67 | module.exports = Panel; |
\ | No newline at end of file |