fix upstream description

This commit is contained in:
Ildar Kamalov
2025-02-24 10:32:46 +03:00
parent 26b0eddaca
commit 115e743e1a
2 changed files with 5 additions and 5 deletions

View File

@@ -40,17 +40,17 @@ type FormProps = {
const upstreamModeOptions = [
{
label: i18next.t('load_balancing'),
desc: i18next.t('load_balancing_desc'),
desc: <Trans components={{ br: <br />, b: <b /> }}>load_balancing_desc</Trans>,
value: DNS_REQUEST_OPTIONS.LOAD_BALANCING,
},
{
label: i18next.t('parallel_requests'),
desc: i18next.t('upstream_parallel'),
desc: <Trans components={{ br: <br />, b: <b /> }}>upstream_parallel</Trans>,
value: DNS_REQUEST_OPTIONS.PARALLEL,
},
{
label: i18next.t('fastest_addr'),
desc: i18next.t('fastest_addr_desc'),
desc: <Trans components={{ br: <br />, b: <b /> }}>fastest_addr_desc</Trans>,
value: DNS_REQUEST_OPTIONS.FASTEST_ADDR,
},
];

View File

@@ -1,10 +1,10 @@
import React, { forwardRef } from 'react';
import React, { forwardRef, ReactNode } from 'react';
type Props<T> = {
name: string;
value: T;
onChange: (e: T) => void;
options: { label: string; desc?: string; value: T }[];
options: { label: string; desc?: ReactNode; value: T }[];
disabled?: boolean;
error?: string;
};