Skip to content

Commit

Permalink
Fix no results translation and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
aterstriep committed Dec 11, 2024
1 parent 543ad8a commit 0d7e3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MentionTextArea/MentionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const scrollIntoView = () => {
/** Renders the list of suggestions within `MentionTextArea` */
const MentionList = forwardRef<MentionListOnKeyDown, MentionSuggestionProps>(
(props, ref) => {
const { t } = useTranslation('discussionsMisc');
const { t } = useTranslation('general');

const [selectedIndex, setSelectedIndex] = useState<number>(0);

Expand Down Expand Up @@ -113,7 +113,7 @@ const MentionList = forwardRef<MentionListOnKeyDown, MentionSuggestionProps>(
</button>
))
) : (
<div className="item">{t('noResults')}</div>
<span className="item padding-x-1">{t('noResults')}</span>
)}
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en-US/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 0d7e3df

Please sign in to comment.