diff options
author | 2019-09-05 10:16:43 +0200 | |
---|---|---|
committer | 2019-09-05 10:16:43 +0200 | |
commit | f0b46fc9655b9e13039f1e4f1b7c0c0def0c0241 (patch) | |
tree | 5906a8b32c7ece712f9215a46464df7f25281086 /src/features | |
parent | update settings ui (diff) | |
download | ferdium-app-f0b46fc9655b9e13039f1e4f1b7c0c0def0c0241.tar.gz ferdium-app-f0b46fc9655b9e13039f1e4f1b7c0c0def0c0241.tar.zst ferdium-app-f0b46fc9655b9e13039f1e4f1b7c0c0def0c0241.zip |
Fix linting issues
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/workspaces/components/WorkspacesDashboard.js | 4 | ||||
-rw-r--r-- | src/features/workspaces/containers/WorkspacesScreen.js | 11 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/features/workspaces/components/WorkspacesDashboard.js b/src/features/workspaces/components/WorkspacesDashboard.js index fc636dd95..70e213912 100644 --- a/src/features/workspaces/components/WorkspacesDashboard.js +++ b/src/features/workspaces/components/WorkspacesDashboard.js | |||
@@ -50,7 +50,7 @@ const messages = defineMessages({ | |||
50 | }, | 50 | }, |
51 | }); | 51 | }); |
52 | 52 | ||
53 | const styles = theme => ({ | 53 | const styles = () => ({ |
54 | table: { | 54 | table: { |
55 | width: '100%', | 55 | width: '100%', |
56 | '& td': { | 56 | '& td': { |
@@ -96,8 +96,6 @@ class WorkspacesDashboard extends Component { | |||
96 | onCreateWorkspaceSubmit: PropTypes.func.isRequired, | 96 | onCreateWorkspaceSubmit: PropTypes.func.isRequired, |
97 | onWorkspaceClick: PropTypes.func.isRequired, | 97 | onWorkspaceClick: PropTypes.func.isRequired, |
98 | workspaces: MobxPropTypes.arrayOrObservableArray.isRequired, | 98 | workspaces: MobxPropTypes.arrayOrObservableArray.isRequired, |
99 | isPersonalUser: PropTypes.bool.isRequired, | ||
100 | onUpgradeAccount: PropTypes.func.isRequired, | ||
101 | }; | 99 | }; |
102 | 100 | ||
103 | static contextTypes = { | 101 | static contextTypes = { |
diff --git a/src/features/workspaces/containers/WorkspacesScreen.js b/src/features/workspaces/containers/WorkspacesScreen.js index 5fbb0c31d..affbd230d 100644 --- a/src/features/workspaces/containers/WorkspacesScreen.js +++ b/src/features/workspaces/containers/WorkspacesScreen.js | |||
@@ -10,38 +10,29 @@ import { | |||
10 | getUserWorkspacesRequest, | 10 | getUserWorkspacesRequest, |
11 | updateWorkspaceRequest, | 11 | updateWorkspaceRequest, |
12 | } from '../api'; | 12 | } from '../api'; |
13 | import UserStore from '../../../stores/UserStore'; | ||
14 | 13 | ||
15 | @inject('stores', 'actions') @observer | 14 | @inject('stores', 'actions') @observer |
16 | class WorkspacesScreen extends Component { | 15 | class WorkspacesScreen extends Component { |
17 | static propTypes = { | 16 | static propTypes = { |
18 | stores: PropTypes.shape({ | ||
19 | user: PropTypes.instanceOf(UserStore), | ||
20 | }).isRequired, | ||
21 | actions: PropTypes.shape({ | 17 | actions: PropTypes.shape({ |
22 | workspace: PropTypes.shape({ | 18 | workspace: PropTypes.shape({ |
23 | edit: PropTypes.func.isRequired, | 19 | edit: PropTypes.func.isRequired, |
24 | }), | 20 | }), |
25 | ui: PropTypes.shape({ | ||
26 | openSettings: PropTypes.func.isRequired, | ||
27 | }), | ||
28 | }).isRequired, | 21 | }).isRequired, |
29 | }; | 22 | }; |
30 | 23 | ||
31 | render() { | 24 | render() { |
32 | const { stores, actions } = this.props; | 25 | const { actions } = this.props; |
33 | return ( | 26 | return ( |
34 | <ErrorBoundary> | 27 | <ErrorBoundary> |
35 | <WorkspacesDashboard | 28 | <WorkspacesDashboard |
36 | workspaces={workspaceStore.workspaces} | 29 | workspaces={workspaceStore.workspaces} |
37 | isPersonalUser={stores.user.isPersonal} | ||
38 | getUserWorkspacesRequest={getUserWorkspacesRequest} | 30 | getUserWorkspacesRequest={getUserWorkspacesRequest} |
39 | createWorkspaceRequest={createWorkspaceRequest} | 31 | createWorkspaceRequest={createWorkspaceRequest} |
40 | deleteWorkspaceRequest={deleteWorkspaceRequest} | 32 | deleteWorkspaceRequest={deleteWorkspaceRequest} |
41 | updateWorkspaceRequest={updateWorkspaceRequest} | 33 | updateWorkspaceRequest={updateWorkspaceRequest} |
42 | onCreateWorkspaceSubmit={data => actions.workspaces.create(data)} | 34 | onCreateWorkspaceSubmit={data => actions.workspaces.create(data)} |
43 | onWorkspaceClick={w => actions.workspaces.edit({ workspace: w })} | 35 | onWorkspaceClick={w => actions.workspaces.edit({ workspace: w })} |
44 | onUpgradeAccount={() => actions.ui.openSettings({ path: 'user' })} | ||
45 | /> | 36 | /> |
46 | </ErrorBoundary> | 37 | </ErrorBoundary> |
47 | ); | 38 | ); |