diff options
Diffstat (limited to 'src/containers/settings/TeamScreen.js')
-rw-r--r-- | src/containers/settings/TeamScreen.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/containers/settings/TeamScreen.js b/src/containers/settings/TeamScreen.js index f600c9947..d0196923a 100644 --- a/src/containers/settings/TeamScreen.js +++ b/src/containers/settings/TeamScreen.js | |||
@@ -4,6 +4,7 @@ import { inject, observer } from 'mobx-react'; | |||
4 | 4 | ||
5 | import UserStore from '../../stores/UserStore'; | 5 | import UserStore from '../../stores/UserStore'; |
6 | import AppStore from '../../stores/AppStore'; | 6 | import AppStore from '../../stores/AppStore'; |
7 | import SettingsStore from '../../stores/SettingsStore'; | ||
7 | 8 | ||
8 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; | 9 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; |
9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 10 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
@@ -19,9 +20,10 @@ export default @inject('stores', 'actions') @observer class TeamScreen extends C | |||
19 | } | 20 | } |
20 | 21 | ||
21 | render() { | 22 | render() { |
22 | const { user } = this.props.stores; | 23 | const { user, settings } = this.props.stores; |
23 | 24 | ||
24 | const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; | 25 | const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; |
26 | const { server } = settings.app; | ||
25 | 27 | ||
26 | return ( | 28 | return ( |
27 | <ErrorBoundary> | 29 | <ErrorBoundary> |
@@ -31,6 +33,7 @@ export default @inject('stores', 'actions') @observer class TeamScreen extends C | |||
31 | retryUserInfoRequest={() => this.reloadData()} | 33 | retryUserInfoRequest={() => this.reloadData()} |
32 | openTeamManagement={() => this.handleWebsiteLink('/user/team')} | 34 | openTeamManagement={() => this.handleWebsiteLink('/user/team')} |
33 | isProUser={user.isPro} | 35 | isProUser={user.isPro} |
36 | server={server} | ||
34 | /> | 37 | /> |
35 | </ErrorBoundary> | 38 | </ErrorBoundary> |
36 | ); | 39 | ); |
@@ -41,6 +44,7 @@ TeamScreen.wrappedComponent.propTypes = { | |||
41 | stores: PropTypes.shape({ | 44 | stores: PropTypes.shape({ |
42 | user: PropTypes.instanceOf(UserStore).isRequired, | 45 | user: PropTypes.instanceOf(UserStore).isRequired, |
43 | app: PropTypes.instanceOf(AppStore).isRequired, | 46 | app: PropTypes.instanceOf(AppStore).isRequired, |
47 | settings: PropTypes.instanceOf(SettingsStore).isRequired, | ||
44 | }).isRequired, | 48 | }).isRequired, |
45 | actions: PropTypes.shape({ | 49 | actions: PropTypes.shape({ |
46 | payment: PropTypes.shape({ | 50 | payment: PropTypes.shape({ |