badguardhome/client/src/containers/Dns.js

25 lines
535 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { handleUpstreamChange, setUpstream, testUpstream, addErrorToast } from '../actions';
import Dns from '../components/Settings/Dns';
const mapStateToProps = (state) => {
const { dashboard, settings } = state;
const props = {
dashboard,
settings,
};
return props;
};
const mapDispatchToProps = {
handleUpstreamChange,
setUpstream,
testUpstream,
addErrorToast,
};
export default connect(
mapStateToProps,
mapDispatchToProps,
)(Dns);