badguardhome/client/src/containers/Dhcp.js

39 lines
711 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
toggleDhcp,
getDhcpStatus,
getDhcpInterfaces,
setDhcpConfig,
findActiveDhcp,
toggleLeaseModal,
addStaticLease,
removeStaticLease,
2019-10-15 14:14:24 +00:00
resetDhcp,
} from '../actions';
import Dhcp from '../components/Settings/Dhcp';
const mapStateToProps = (state) => {
const { dhcp } = state;
const props = {
dhcp,
};
return props;
};
const mapDispatchToProps = {
toggleDhcp,
getDhcpStatus,
getDhcpInterfaces,
setDhcpConfig,
findActiveDhcp,
toggleLeaseModal,
addStaticLease,
removeStaticLease,
2019-10-15 14:14:24 +00:00
resetDhcp,
};
export default connect(
mapStateToProps,
mapDispatchToProps,
)(Dhcp);