paperProps?: PaperProps;
actions?: React.ReactNode;
hideSearchInput?: boolean;
- currentRoute?: string;
+ paperKey?: string;
}
interface DataExplorerActionProps<T> {
rowsPerPage, rowsPerPageOptions, onColumnToggle, searchValue, onSearch,
items, itemsAvailable, onRowClick, onRowDoubleClick, classes,
dataTableDefaultView, hideColumnSelector, actions, paperProps, hideSearchInput,
- currentRoute
+ paperKey
} = this.props;
- return <Paper className={classes.root} {...paperProps} key={currentRoute}>
+ return <Paper className={classes.root} {...paperProps} key={paperKey}>
<Toolbar className={classes.toolbar}>
<Grid container justify="space-between" wrap="nowrap" alignItems="center">
{!hideSearchInput && <div className={classes.searchBox}>
const progress = state.progressIndicator.find(p => p.id === id);
const working = progress && progress.working;
const currentRoute = state.router.location ? state.router.location.pathname : '';
- return { ...getDataExplorer(state.dataExplorer, id), working, currentRoute };
+ return { ...getDataExplorer(state.dataExplorer, id), working, paperKey: currentRoute };
};
const mapDispatchToProps = () => {