X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/29280b2ea824414bb703ac8b63cf3f90f72aea62..e79b7364ea28b6f0719c9adf409ba1217b9ccac8:/src/views-components/side-panel/side-panel.tsx diff --git a/src/views-components/side-panel/side-panel.tsx b/src/views-components/side-panel/side-panel.tsx index fffe3344c9..12e82dfb10 100644 --- a/src/views-components/side-panel/side-panel.tsx +++ b/src/views-components/side-panel/side-panel.tsx @@ -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 & SidePanelTreeProps) => +const mapStateToProps = (state: RootState) => ({ +}); + +export const SidePanel = withStyles(styles)( + connect(mapStateToProps, mapDispatchToProps)( + ({ classes, ...props }: WithStyles & SidePanelTreeProps) => - ); \ No newline at end of file + +));