diff options
author | 2019-04-08 16:01:39 +0200 | |
---|---|---|
committer | 2019-04-08 16:01:39 +0200 | |
commit | b92541305cbeaf32f54ed2751f4ddd880baa2b69 (patch) | |
tree | 939b26be6535c6ed0d59eb429a7131535cc4b9ff | |
parent | Add new Team page in settings (diff) | |
download | ferdium-app-b92541305cbeaf32f54ed2751f4ddd880baa2b69.tar.gz ferdium-app-b92541305cbeaf32f54ed2751f4ddd880baa2b69.tar.zst ferdium-app-b92541305cbeaf32f54ed2751f4ddd880baa2b69.zip |
Clean up
-rw-r--r-- | src/components/settings/team/TeamDashboard.js | 6 | ||||
-rw-r--r-- | src/containers/settings/TeamScreen.js | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/components/settings/team/TeamDashboard.js b/src/components/settings/team/TeamDashboard.js index a29a262e9..e222bb14c 100644 --- a/src/components/settings/team/TeamDashboard.js +++ b/src/components/settings/team/TeamDashboard.js | |||
@@ -37,11 +37,11 @@ const messages = defineMessages({ | |||
37 | }, | 37 | }, |
38 | }); | 38 | }); |
39 | 39 | ||
40 | const styles = theme => ({ | 40 | const styles = { |
41 | cta: { | 41 | cta: { |
42 | marginTop: 40, | 42 | marginTop: 40, |
43 | }, | 43 | }, |
44 | }); | 44 | }; |
45 | 45 | ||
46 | 46 | ||
47 | export default @injectSheet(styles) @observer class TeamDashboard extends Component { | 47 | export default @injectSheet(styles) @observer class TeamDashboard extends Component { |
@@ -51,7 +51,6 @@ export default @injectSheet(styles) @observer class TeamDashboard extends Compon | |||
51 | userInfoRequestFailed: PropTypes.bool.isRequired, | 51 | userInfoRequestFailed: PropTypes.bool.isRequired, |
52 | retryUserInfoRequest: PropTypes.func.isRequired, | 52 | retryUserInfoRequest: PropTypes.func.isRequired, |
53 | openTeamManagement: PropTypes.func.isRequired, | 53 | openTeamManagement: PropTypes.func.isRequired, |
54 | upgradeAccount: PropTypes.func.isRequired, | ||
55 | classes: PropTypes.object.isRequired, | 54 | classes: PropTypes.object.isRequired, |
56 | }; | 55 | }; |
57 | 56 | ||
@@ -66,7 +65,6 @@ export default @injectSheet(styles) @observer class TeamDashboard extends Compon | |||
66 | userInfoRequestFailed, | 65 | userInfoRequestFailed, |
67 | retryUserInfoRequest, | 66 | retryUserInfoRequest, |
68 | openTeamManagement, | 67 | openTeamManagement, |
69 | upgradeAccount, | ||
70 | classes, | 68 | classes, |
71 | } = this.props; | 69 | } = this.props; |
72 | const { intl } = this.context; | 70 | const { intl } = this.context; |
diff --git a/src/containers/settings/TeamScreen.js b/src/containers/settings/TeamScreen.js index 3a4b7ef77..30b0895e3 100644 --- a/src/containers/settings/TeamScreen.js +++ b/src/containers/settings/TeamScreen.js | |||
@@ -1,9 +1,7 @@ | |||
1 | import { remote } from 'electron'; | ||
2 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
3 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
4 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
5 | 4 | ||
6 | import PaymentStore from '../../stores/PaymentStore'; | ||
7 | import UserStore from '../../stores/UserStore'; | 5 | import UserStore from '../../stores/UserStore'; |
8 | import AppStore from '../../stores/AppStore'; | 6 | import AppStore from '../../stores/AppStore'; |
9 | 7 | ||
@@ -11,8 +9,6 @@ import TeamDashboard from '../../components/settings/team/TeamDashboard'; | |||
11 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
12 | import { WEBSITE } from '../../environment'; | 10 | import { WEBSITE } from '../../environment'; |
13 | 11 | ||
14 | const { BrowserWindow } = remote; | ||
15 | |||
16 | export default @inject('stores', 'actions') @observer class TeamScreen extends Component { | 12 | export default @inject('stores', 'actions') @observer class TeamScreen extends Component { |
17 | handleWebsiteLink(route) { | 13 | handleWebsiteLink(route) { |
18 | const { actions, stores } = this.props; | 14 | const { actions, stores } = this.props; |
@@ -45,7 +41,6 @@ export default @inject('stores', 'actions') @observer class TeamScreen extends C | |||
45 | TeamScreen.wrappedComponent.propTypes = { | 41 | TeamScreen.wrappedComponent.propTypes = { |
46 | stores: PropTypes.shape({ | 42 | stores: PropTypes.shape({ |
47 | user: PropTypes.instanceOf(UserStore).isRequired, | 43 | user: PropTypes.instanceOf(UserStore).isRequired, |
48 | payment: PropTypes.instanceOf(PaymentStore).isRequired, | ||
49 | app: PropTypes.instanceOf(AppStore).isRequired, | 44 | app: PropTypes.instanceOf(AppStore).isRequired, |
50 | }).isRequired, | 45 | }).isRequired, |
51 | actions: PropTypes.shape({ | 46 | actions: PropTypes.shape({ |