2018-08-30 14:25:33 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-07-08 09:49:03 +00:00
|
|
|
import { getLogs, toggleLogStatus, downloadQueryLog, getFilteringStatus, setRules, addSuccessToast, getClients } from '../actions';
|
2018-08-30 14:25:33 +00:00
|
|
|
import Logs from '../components/Logs';
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2018-09-28 13:30:52 +00:00
|
|
|
const { queryLogs, dashboard, filtering } = state;
|
|
|
|
const props = { queryLogs, dashboard, filtering };
|
2018-08-30 14:25:33 +00:00
|
|
|
return props;
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
getLogs,
|
|
|
|
toggleLogStatus,
|
|
|
|
downloadQueryLog,
|
2018-09-28 13:30:52 +00:00
|
|
|
getFilteringStatus,
|
|
|
|
setRules,
|
|
|
|
addSuccessToast,
|
2019-07-08 09:49:03 +00:00
|
|
|
getClients,
|
2018-08-30 14:25:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps,
|
|
|
|
)(Logs);
|