2018-08-30 14:25:33 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-09-12 13:19:35 +00:00
|
|
|
import { addSuccessToast, getClients } from '../actions';
|
|
|
|
import { getFilteringStatus, setRules } from '../actions/filtering';
|
2019-11-15 07:51:45 +00:00
|
|
|
import { getLogs, getLogsConfig, setLogsPagination, setLogsFilter, setLogsPage } from '../actions/queryLogs';
|
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,
|
2018-09-28 13:30:52 +00:00
|
|
|
getFilteringStatus,
|
|
|
|
setRules,
|
|
|
|
addSuccessToast,
|
2019-07-08 09:49:03 +00:00
|
|
|
getClients,
|
2019-09-04 14:39:35 +00:00
|
|
|
getLogsConfig,
|
2019-09-20 12:05:10 +00:00
|
|
|
setLogsPagination,
|
2019-09-26 08:36:02 +00:00
|
|
|
setLogsFilter,
|
2019-11-15 07:51:45 +00:00
|
|
|
setLogsPage,
|
2018-08-30 14:25:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps,
|
|
|
|
)(Logs);
|