Update upstream_dns_help

This commit is contained in:
ArtemBaskal
2020-09-09 21:51:02 +03:00
parent 7177361016
commit 071a1f77a4
31 changed files with 20 additions and 36 deletions

View File

@@ -11,11 +11,16 @@ import { DNS_REQUEST_OPTIONS, FORM_NAME, UPSTREAM_CONFIGURATION_WIKI_LINK } from
import { testUpstream } from '../../../../actions';
import { removeEmptyLines } from '../../../../helpers/helpers';
const Title = () => <label className="form__label" htmlFor="upstream_dns">
<Trans components={[<a href={UPSTREAM_CONFIGURATION_WIKI_LINK} key="0">link</a>]}>
upstream_dns_help
</Trans>
</label>;
const Title = () => {
const components = {
a: <a href={UPSTREAM_CONFIGURATION_WIKI_LINK} target="_blank"
rel="noopener noreferrer" />,
};
return <div className="form__label" htmlFor="upstream_dns">
<Trans components={components}>upstream_dns_help</Trans>
</div>;
};
const getInputFields = (upstream_dns_file) => [
{