2019-06-03 12:41:45 +00:00
|
|
|
import { connect } from 'react-redux';
|
2019-06-03 13:18:49 +00:00
|
|
|
import { handleUpstreamChange, setUpstream, testUpstream } from '../actions';
|
2019-06-03 13:08:50 +00:00
|
|
|
import { getAccessList, setAccessList } from '../actions/access';
|
2019-06-03 12:41:45 +00:00
|
|
|
import Dns from '../components/Settings/Dns';
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2019-06-03 13:08:50 +00:00
|
|
|
const { dashboard, settings, access } = state;
|
2019-06-03 12:41:45 +00:00
|
|
|
const props = {
|
|
|
|
dashboard,
|
|
|
|
settings,
|
2019-06-03 13:08:50 +00:00
|
|
|
access,
|
2019-06-03 12:41:45 +00:00
|
|
|
};
|
|
|
|
return props;
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
handleUpstreamChange,
|
|
|
|
setUpstream,
|
|
|
|
testUpstream,
|
2019-06-03 13:08:50 +00:00
|
|
|
getAccessList,
|
|
|
|
setAccessList,
|
2019-06-03 12:41:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps,
|
|
|
|
)(Dns);
|