refs #11432 Merge branch 'origin/14432-search-object-object'
[arvados-workbench2.git] / src / views-components / side-panel / side-panel.tsx
index fffe3344c9ce66dd94c3a8d79933f83047aaf7a9..12e82dfb102f9ade1df6cd928a19c1957b7ebe3b 100644 (file)
@@ -11,6 +11,7 @@ import { connect } from 'react-redux';
 import { navigateFromSidePanel } from '../../store/side-panel/side-panel-action';
 import { Grid } from '@material-ui/core';
 import { SidePanelButton } from '~/views-components/side-panel-button/side-panel-button';
+import { RootState } from '~/store/store';
 
 const DRAWER_WITDH = 240;
 
@@ -32,11 +33,14 @@ const mapDispatchToProps = (dispatch: Dispatch): SidePanelTreeProps => ({
     }
 });
 
-export const SidePanel = compose(
-    withStyles(styles),
-    connect(undefined, mapDispatchToProps)
-)(({ classes, ...props }: WithStyles<CssRules> & SidePanelTreeProps) =>
+const mapStateToProps = (state: RootState) => ({
+});
+
+export const SidePanel = withStyles(styles)(
+    connect(mapStateToProps, mapDispatchToProps)(
+    ({ classes, ...props }: WithStyles<CssRules> & SidePanelTreeProps) =>
     <Grid item xs>
         <SidePanelButton />
         <SidePanelTree {...props} />
-    </Grid>);
\ No newline at end of file
+    </Grid>
+));