2019-06-03 12:41:45 +00:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
toggleDhcp,
|
|
|
|
getDhcpStatus,
|
|
|
|
getDhcpInterfaces,
|
|
|
|
setDhcpConfig,
|
|
|
|
findActiveDhcp,
|
|
|
|
toggleLeaseModal,
|
|
|
|
addStaticLease,
|
|
|
|
removeStaticLease,
|
2019-10-15 14:14:24 +00:00
|
|
|
resetDhcp,
|
2019-06-03 12:41:45 +00:00
|
|
|
} 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,
|
2019-06-03 12:41:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps,
|
|
|
|
)(Dhcp);
|