mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-26 15:05:50 +03:00
Change back div to label
This commit is contained in:
parent
c5773577bc
commit
bce69809bc
1 changed files with 5 additions and 3 deletions
|
@ -11,21 +11,23 @@ import { DNS_REQUEST_OPTIONS, FORM_NAME, UPSTREAM_CONFIGURATION_WIKI_LINK } from
|
||||||
import { testUpstream } from '../../../../actions';
|
import { testUpstream } from '../../../../actions';
|
||||||
import { removeEmptyLines } from '../../../../helpers/helpers';
|
import { removeEmptyLines } from '../../../../helpers/helpers';
|
||||||
|
|
||||||
|
const UPSTREAM_DNS_NAME = 'upstream_dns';
|
||||||
|
|
||||||
const Title = () => {
|
const Title = () => {
|
||||||
const components = {
|
const components = {
|
||||||
a: <a href={UPSTREAM_CONFIGURATION_WIKI_LINK} target="_blank"
|
a: <a href={UPSTREAM_CONFIGURATION_WIKI_LINK} target="_blank"
|
||||||
rel="noopener noreferrer" />,
|
rel="noopener noreferrer" />,
|
||||||
};
|
};
|
||||||
|
|
||||||
return <div className="form__label" htmlFor="upstream_dns">
|
return <label className="form__label" htmlFor={UPSTREAM_DNS_NAME}>
|
||||||
<Trans components={components}>upstream_dns_help</Trans>
|
<Trans components={components}>upstream_dns_help</Trans>
|
||||||
</div>;
|
</label>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const getInputFields = (upstream_dns_file) => [
|
const getInputFields = (upstream_dns_file) => [
|
||||||
{
|
{
|
||||||
getTitle: Title,
|
getTitle: Title,
|
||||||
name: 'upstream_dns',
|
name: UPSTREAM_DNS_NAME,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
value: 'test',
|
value: 'test',
|
||||||
component: renderTextareaField,
|
component: renderTextareaField,
|
||||||
|
|
Loading…
Reference in a new issue