Fix non concatenated strings
This commit is contained in:
parent
1695312833
commit
d2e4f46abd
1 changed files with 3 additions and 4 deletions
|
@ -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" />
|
||||||
|
|
Loading…
Reference in a new issue