import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import Form from './Form'; import Card from '../../../ui/Card'; class Upstream extends Component { handleSubmit = (values) => { this.props.setDnsConfig(values); }; handleTest = (values) => { this.props.testUpstream(values); }; render() { const { t, processingTestUpstream, dnsConfig: { upstream_dns, bootstrap_dns, fastest_addr, parallel_requests, processingSetConfig, }, } = this.props; return (
); } } Upstream.propTypes = { testUpstream: PropTypes.func.isRequired, processingTestUpstream: PropTypes.bool.isRequired, t: PropTypes.func.isRequired, dnsConfig: PropTypes.object.isRequired, setDnsConfig: PropTypes.func.isRequired, }; export default withTranslation()(Upstream);