|
1 | 1 | "use strict"; |
2 | | -var __extends = (this && this.__extends) || function (d, b) { |
3 | | - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; |
4 | | - function __() { this.constructor = d; } |
5 | | - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
6 | | -}; |
7 | | -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
8 | | - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
9 | | - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
10 | | - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
11 | | - return c > 3 && r && Object.defineProperty(target, key, r), r; |
12 | | -}; |
13 | | -var __metadata = (this && this.__metadata) || function (k, v) { |
14 | | - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); |
15 | | -}; |
16 | 2 | var React = require('react'); |
17 | | -var react_redux_1 = require('react-redux'); |
18 | | -var actions_1 = require('../../../actions'); |
19 | 3 | var MenuItem_1 = require('material-ui/MenuItem'); |
| 4 | +var subscriptions_1 = require('../../../atom/subscriptions'); |
20 | 5 | var styles = { |
21 | 6 | textAlign: 'center', |
22 | 7 | padding: '0px 2px', |
23 | 8 | }; |
24 | | -var Quit = (function (_super) { |
25 | | - __extends(Quit, _super); |
26 | | - function Quit() { |
27 | | - _super.apply(this, arguments); |
28 | | - } |
29 | | - Quit.prototype.render = function () { |
30 | | - return (React.createElement(MenuItem_1.default, {style: styles, key: 'quit', onClick: this.props.quit}, "quit")); |
31 | | - }; |
32 | | - Quit = __decorate([ |
33 | | - react_redux_1.connect(null, function (dispatch) { |
34 | | - return { |
35 | | - quit: function () { return dispatch(actions_1.quit()); } |
36 | | - }; |
37 | | - }), |
38 | | - __metadata('design:paramtypes', []) |
39 | | - ], Quit); |
40 | | - return Quit; |
41 | | -}(React.Component)); |
| 9 | +var Quit = function () { return (React.createElement(MenuItem_1.default, {style: styles, key: 'quit', onClick: subscriptions_1.onDeactivate}, "quit")); }; |
42 | 10 | Object.defineProperty(exports, "__esModule", { value: true }); |
43 | 11 | exports.default = Quit; |
0 commit comments