Fix non concatenated strings

This commit is contained in:
Rafael 2021-12-07 08:57:31 -03:00 committed by Thomas Zarebczan
parent 1695312833
commit d2e4f46abd

View file

@ -312,13 +312,12 @@ export default function TextareaWithSuggestions(props: Props) {
/** Render **/ /** Render **/
/** ------ **/ /** ------ **/
const renderGroup = (group: string, children: any) => ( const renderGroup = (groupName: string, children: any) => (
<div className="textareaSuggestions__group"> <div className="textareaSuggestions__group">
<label className="textareaSuggestions__label"> <label className="textareaSuggestions__label">
{group}
{suggestionTerm && suggestionTerm.length > 1 {suggestionTerm && suggestionTerm.length > 1
? ' ' + __('matching %matching_term%', { matching_term: suggestionTerm }) ? __('%group_name% matching %matching_term%', { group_name: groupName, matching_term: suggestionTerm })
: ''} : groupName}
</label> </label>
{children} {children}
<hr className="textareaSuggestions__topSeparator" /> <hr className="textareaSuggestions__topSeparator" />