aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/components/WorkspacesDashboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/workspaces/components/WorkspacesDashboard.js')
-rw-r--r--src/features/workspaces/components/WorkspacesDashboard.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/features/workspaces/components/WorkspacesDashboard.js b/src/features/workspaces/components/WorkspacesDashboard.js
index 1087580b1..9c2f65731 100644
--- a/src/features/workspaces/components/WorkspacesDashboard.js
+++ b/src/features/workspaces/components/WorkspacesDashboard.js
@@ -49,7 +49,7 @@ const messages = defineMessages({
49 }, 49 },
50}); 50});
51 51
52const styles = () => ({ 52const styles = {
53 table: { 53 table: {
54 width: '100%', 54 width: '100%',
55 '& td': { 55 '& td': {
@@ -67,11 +67,8 @@ const styles = () => ({
67 margin: [-8, 0, 0, 20], 67 margin: [-8, 0, 0, 20],
68 alignSelf: 'center', 68 alignSelf: 'center',
69 }, 69 },
70}); 70};
71 71
72@inject('stores')
73@injectSheet(styles)
74@observer
75class WorkspacesDashboard extends Component { 72class WorkspacesDashboard extends Component {
76 static propTypes = { 73 static propTypes = {
77 classes: PropTypes.object.isRequired, 74 classes: PropTypes.object.isRequired,
@@ -190,9 +187,13 @@ class WorkspacesDashboard extends Component {
190 } 187 }
191} 188}
192 189
193export default injectIntl(WorkspacesDashboard); 190export default injectIntl(
191 inject('stores')(
192 injectSheet(styles, { injectTheme: true })(observer(WorkspacesDashboard)),
193 ),
194);
194 195
195WorkspacesDashboard.wrappedComponent.propTypes = { 196WorkspacesDashboard.propTypes = {
196 stores: PropTypes.shape({ 197 stores: PropTypes.shape({
197 ui: PropTypes.instanceOf(UIStore).isRequired, 198 ui: PropTypes.instanceOf(UIStore).isRequired,
198 }).isRequired, 199 }).isRequired,