diff --git a/frontend/src/components/PostFormTagsArea.tsx b/frontend/src/components/PostFormTagsArea.tsx index 6e72a11..ca27f89 100644 --- a/frontend/src/components/PostFormTagsArea.tsx +++ b/frontend/src/components/PostFormTagsArea.tsx @@ -36,10 +36,13 @@ const replaceToken = (value: string, start: number, end: number, text: string) = type Props = Omit, 'value' | 'onChange' | 'onBlur'> & { tags: string setTags: (tags: string) => void + label?: ReactNode errors?: ReactNode[] } -const PostFormTagsArea: FC = ({ tags, setTags, errors, ...rest }) => { +const PostFormTagsArea: FC = ( + { tags, setTags, label: fieldLabel, errors, ...rest }, +) => { const { label } = useUITranslation ('navigation') const locale = useLocale () const ref = useRef (null) @@ -117,7 +120,10 @@ const PostFormTagsArea: FC = ({ tags, setTags, errors, ...rest }) => { }, [locale]) return ( - + {({ describedBy, invalid }) => ( <>