From 115e743e1a0cad33d764ecb4be53fc401d401156 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Mon, 24 Feb 2025 10:32:46 +0300 Subject: [PATCH] fix upstream description --- client/src/components/Settings/Dns/Upstream/Form.tsx | 6 +++--- client/src/components/ui/Controls/Radio.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/Settings/Dns/Upstream/Form.tsx b/client/src/components/Settings/Dns/Upstream/Form.tsx index 6f5d46f7..a3c625e7 100644 --- a/client/src/components/Settings/Dns/Upstream/Form.tsx +++ b/client/src/components/Settings/Dns/Upstream/Form.tsx @@ -40,17 +40,17 @@ type FormProps = { const upstreamModeOptions = [ { label: i18next.t('load_balancing'), - desc: i18next.t('load_balancing_desc'), + desc: , b: }}>load_balancing_desc, value: DNS_REQUEST_OPTIONS.LOAD_BALANCING, }, { label: i18next.t('parallel_requests'), - desc: i18next.t('upstream_parallel'), + desc: , b: }}>upstream_parallel, value: DNS_REQUEST_OPTIONS.PARALLEL, }, { label: i18next.t('fastest_addr'), - desc: i18next.t('fastest_addr_desc'), + desc: , b: }}>fastest_addr_desc, value: DNS_REQUEST_OPTIONS.FASTEST_ADDR, }, ]; diff --git a/client/src/components/ui/Controls/Radio.tsx b/client/src/components/ui/Controls/Radio.tsx index 8b17a877..9dadc5ff 100644 --- a/client/src/components/ui/Controls/Radio.tsx +++ b/client/src/components/ui/Controls/Radio.tsx @@ -1,10 +1,10 @@ -import React, { forwardRef } from 'react'; +import React, { forwardRef, ReactNode } from 'react'; type Props = { 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; };