From 0d7e3df6f035cb34a18c9314dfeaa3122f00bf16 Mon Sep 17 00:00:00 2001 From: Ashley Terstriep <60187543+aterstriep@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:41:32 -0600 Subject: [PATCH] Fix no results translation and padding --- src/components/MentionTextArea/MentionList.tsx | 4 ++-- src/i18n/en-US/general.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MentionTextArea/MentionList.tsx b/src/components/MentionTextArea/MentionList.tsx index 3db1a7c55f..4fde7ad184 100644 --- a/src/components/MentionTextArea/MentionList.tsx +++ b/src/components/MentionTextArea/MentionList.tsx @@ -35,7 +35,7 @@ const scrollIntoView = () => { /** Renders the list of suggestions within `MentionTextArea` */ const MentionList = forwardRef( (props, ref) => { - const { t } = useTranslation('discussionsMisc'); + const { t } = useTranslation('general'); const [selectedIndex, setSelectedIndex] = useState(0); @@ -113,7 +113,7 @@ const MentionList = forwardRef( )) ) : ( -
{t('noResults')}
+ {t('noResults')} )} ); diff --git a/src/i18n/en-US/general.ts b/src/i18n/en-US/general.ts index aa24b0f750..ca365b9012 100644 --- a/src/i18n/en-US/general.ts +++ b/src/i18n/en-US/general.ts @@ -11,6 +11,7 @@ const general = { remove: 'Remove', pageLoading: 'Loading the page', loadingResults: 'Loading results', + noResults: 'No results', noInfoToDisplay: 'No information to display', noDataAvailable: 'No data available', readMore: 'Read more',