diff options
author | 2019-04-13 21:02:36 +0200 | |
---|---|---|
committer | 2019-04-13 21:02:36 +0200 | |
commit | e5a3a933bad97378a03a82d9d88a67548f8cbad8 (patch) | |
tree | 47ccb86218c8e654cfdef22553f7b6cdea3b7bb9 /src | |
parent | Add spacing (diff) | |
download | ferdium-app-e5a3a933bad97378a03a82d9d88a67548f8cbad8.tar.gz ferdium-app-e5a3a933bad97378a03a82d9d88a67548f8cbad8.tar.zst ferdium-app-e5a3a933bad97378a03a82d9d88a67548f8cbad8.zip |
fix linting issues
Diffstat (limited to 'src')
-rw-r--r-- | src/components/settings/team/TeamDashboard.js | 10 | ||||
-rw-r--r-- | src/containers/settings/TeamScreen.js | 1 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/components/settings/team/TeamDashboard.js b/src/components/settings/team/TeamDashboard.js index 63381c4ed..e3ea08bf5 100644 --- a/src/components/settings/team/TeamDashboard.js +++ b/src/components/settings/team/TeamDashboard.js | |||
@@ -46,7 +46,7 @@ const styles = { | |||
46 | flexDirection: 'column', | 46 | flexDirection: 'column', |
47 | height: 'auto', | 47 | height: 'auto', |
48 | 48 | ||
49 | ['@media(min-width: 800px)']: { | 49 | '@media(min-width: 800px)': { |
50 | flexDirection: 'row', | 50 | flexDirection: 'row', |
51 | }, | 51 | }, |
52 | }, | 52 | }, |
@@ -54,7 +54,7 @@ const styles = { | |||
54 | height: 'auto', | 54 | height: 'auto', |
55 | order: 1, | 55 | order: 1, |
56 | 56 | ||
57 | ['@media(min-width: 800px)']: { | 57 | '@media(min-width: 800px)': { |
58 | order: 0, | 58 | order: 0, |
59 | }, | 59 | }, |
60 | }, | 60 | }, |
@@ -64,17 +64,16 @@ const styles = { | |||
64 | order: 0, | 64 | order: 0, |
65 | margin: [0, 'auto', 40, 'auto'], | 65 | margin: [0, 'auto', 40, 'auto'], |
66 | 66 | ||
67 | ['@media(min-width: 800px)']: { | 67 | '@media(min-width: 800px)': { |
68 | marginLeft: 40, | 68 | marginLeft: 40, |
69 | order: 1, | 69 | order: 1, |
70 | }, | 70 | }, |
71 | } | 71 | }, |
72 | }; | 72 | }; |
73 | 73 | ||
74 | 74 | ||
75 | export default @injectSheet(styles) @observer class TeamDashboard extends Component { | 75 | export default @injectSheet(styles) @observer class TeamDashboard extends Component { |
76 | static propTypes = { | 76 | static propTypes = { |
77 | user: MobxPropTypes.observableObject.isRequired, | ||
78 | isLoading: PropTypes.bool.isRequired, | 77 | isLoading: PropTypes.bool.isRequired, |
79 | userInfoRequestFailed: PropTypes.bool.isRequired, | 78 | userInfoRequestFailed: PropTypes.bool.isRequired, |
80 | retryUserInfoRequest: PropTypes.func.isRequired, | 79 | retryUserInfoRequest: PropTypes.func.isRequired, |
@@ -88,7 +87,6 @@ export default @injectSheet(styles) @observer class TeamDashboard extends Compon | |||
88 | 87 | ||
89 | render() { | 88 | render() { |
90 | const { | 89 | const { |
91 | user, | ||
92 | isLoading, | 90 | isLoading, |
93 | userInfoRequestFailed, | 91 | userInfoRequestFailed, |
94 | retryUserInfoRequest, | 92 | retryUserInfoRequest, |
diff --git a/src/containers/settings/TeamScreen.js b/src/containers/settings/TeamScreen.js index 30b0895e3..c69d5ad08 100644 --- a/src/containers/settings/TeamScreen.js +++ b/src/containers/settings/TeamScreen.js | |||
@@ -27,7 +27,6 @@ export default @inject('stores', 'actions') @observer class TeamScreen extends C | |||
27 | return ( | 27 | return ( |
28 | <ErrorBoundary> | 28 | <ErrorBoundary> |
29 | <TeamDashboard | 29 | <TeamDashboard |
30 | user={user.data} | ||
31 | isLoading={isLoadingUserInfo} | 30 | isLoading={isLoadingUserInfo} |
32 | userInfoRequestFailed={user.getUserInfoRequest.wasExecuted && user.getUserInfoRequest.isError} | 31 | userInfoRequestFailed={user.getUserInfoRequest.wasExecuted && user.getUserInfoRequest.isError} |
33 | retryUserInfoRequest={() => this.reloadData()} | 32 | retryUserInfoRequest={() => this.reloadData()} |