From 146e7ca7b6b5f8614855d51d13fa83d46748b095 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 16 Jul 2023 07:01:33 +0300 Subject: [PATCH] Use HelpTexts for sync levels in applications --- .../Applications/EditApplicationModalContent.js | 5 ++++- .../Manage/Edit/ManageApplicationsEditModalContent.tsx | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/Settings/Applications/Applications/EditApplicationModalContent.js b/frontend/src/Settings/Applications/Applications/EditApplicationModalContent.js index a8b0636de..caaa6fd1c 100644 --- a/frontend/src/Settings/Applications/Applications/EditApplicationModalContent.js +++ b/frontend/src/Settings/Applications/Applications/EditApplicationModalContent.js @@ -102,7 +102,10 @@ function EditApplicationModalContent(props) { type={inputTypes.SELECT} values={syncLevelOptions} name="syncLevel" - helpText={`${translate('SyncLevelAddRemove')}
${translate('SyncLevelFull')}`} + helpTexts={[ + translate('SyncLevelAddRemove'), + translate('SyncLevelFull') + ]} {...syncLevel} onChange={onInputChange} /> diff --git a/frontend/src/Settings/Applications/Applications/Manage/Edit/ManageApplicationsEditModalContent.tsx b/frontend/src/Settings/Applications/Applications/Manage/Edit/ManageApplicationsEditModalContent.tsx index dfdd1639b..e359eac25 100644 --- a/frontend/src/Settings/Applications/Applications/Manage/Edit/ManageApplicationsEditModalContent.tsx +++ b/frontend/src/Settings/Applications/Applications/Manage/Edit/ManageApplicationsEditModalContent.tsx @@ -82,9 +82,10 @@ function ManageApplicationsEditModalContent( name="syncLevel" value={syncLevel} values={syncLevelOptions} - helpText={`${translate('SyncLevelAddRemove')}
${translate( - 'SyncLevelFull' - )}`} + helpTexts={[ + translate('SyncLevelAddRemove'), + translate('SyncLevelFull'), + ]} onChange={onInputChange} />