25 lines
622 B
JavaScript
25 lines
622 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getLogs, toggleLogStatus, downloadQueryLog, getFilteringStatus, setRules, addSuccessToast, getClients } from '../actions';
|
|
import Logs from '../components/Logs';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { queryLogs, dashboard, filtering } = state;
|
|
const props = { queryLogs, dashboard, filtering };
|
|
return props;
|
|
};
|
|
|
|
const mapDispatchToProps = {
|
|
getLogs,
|
|
toggleLogStatus,
|
|
downloadQueryLog,
|
|
getFilteringStatus,
|
|
setRules,
|
|
addSuccessToast,
|
|
getClients,
|
|
};
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps,
|
|
)(Logs);
|