Epitech's Blih Repository Manager

WinBar.js 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.WinBar = undefined;
  6. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7. var _AppBar = require('material-ui/AppBar');
  8. var _AppBar2 = _interopRequireDefault(_AppBar);
  9. var _IconButton = require('material-ui/IconButton');
  10. var _IconButton2 = _interopRequireDefault(_IconButton);
  11. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  13. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  14. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  15. var React = require('react');
  16. var WinBar = exports.WinBar = function (_React$Component) {
  17. _inherits(WinBar, _React$Component);
  18. function WinBar() {
  19. _classCallCheck(this, WinBar);
  20. return _possibleConstructorReturn(this, (WinBar.__proto__ || Object.getPrototypeOf(WinBar)).apply(this, arguments));
  21. }
  22. _createClass(WinBar, [{
  23. key: 'render',
  24. value: function render() {
  25. return React.createElement(_AppBar2.default, {
  26. title: 'Glih',
  27. showMenuIconButton: false,
  28. iconElementRight: React.createElement(
  29. _IconButton2.default,
  30. { iconClassName: 'material-icons' },
  31. 'close'
  32. )
  33. });
  34. }
  35. }]);
  36. return WinBar;
  37. }(React.Component);