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/workspaces/containers | |
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/workspaces/containers')
-rw-r--r-- | src/features/workspaces/containers/WorkspacesScreen.js | 11 |
1 files changed, 1 insertions, 10 deletions
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 | ); |