diff options
Diffstat (limited to 'src/features/workspaces/components/WorkspaceItem.tsx')
-rw-r--r-- | src/features/workspaces/components/WorkspaceItem.tsx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/features/workspaces/components/WorkspaceItem.tsx b/src/features/workspaces/components/WorkspaceItem.tsx index f46375c7a..eb33a0376 100644 --- a/src/features/workspaces/components/WorkspaceItem.tsx +++ b/src/features/workspaces/components/WorkspaceItem.tsx | |||
@@ -1,8 +1,6 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | ||
3 | import { observer } from 'mobx-react'; | 2 | import { observer } from 'mobx-react'; |
4 | import injectSheet from 'react-jss'; | 3 | import injectSheet from 'react-jss'; |
5 | |||
6 | import Workspace from '../models/Workspace'; | 4 | import Workspace from '../models/Workspace'; |
7 | 5 | ||
8 | const styles = theme => ({ | 6 | const styles = theme => ({ |
@@ -18,17 +16,11 @@ const styles = theme => ({ | |||
18 | 16 | ||
19 | type Props = { | 17 | type Props = { |
20 | classes: any; | 18 | classes: any; |
21 | workspace: any; | 19 | workspace: typeof Workspace; |
22 | onItemClick: (workspace) => void; | 20 | onItemClick: (workspace) => void; |
23 | }; | 21 | }; |
24 | 22 | ||
25 | class WorkspaceItem extends Component<Props> { | 23 | class WorkspaceItem extends Component<Props> { |
26 | static propTypes = { | ||
27 | classes: PropTypes.object.isRequired, | ||
28 | workspace: PropTypes.instanceOf(Workspace).isRequired, | ||
29 | onItemClick: PropTypes.func.isRequired, | ||
30 | }; | ||
31 | |||
32 | render() { | 24 | render() { |
33 | const { classes, workspace, onItemClick } = this.props; | 25 | const { classes, workspace, onItemClick } = this.props; |
34 | 26 | ||