WNomunomu 2 лет назад
Родитель
Сommit
f3192e26a0
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      apps/app/src/components/Page/TagEditModal.tsx

+ 8 - 1
apps/app/src/components/Page/TagEditModal.tsx

@@ -8,7 +8,14 @@ import {
 
 import TagsInput from './TagsInput';
 
-function TagEditModal(props) {
+type Props = {
+  tags: string[],
+  isOpen: boolean,
+  onClose: () => void,
+  onTagsUpdated?: (tags: string[]) => Promise<void> | void,
+};
+
+function TagEditModal(props: Props): JSX.Element {
   const [tags, setTags] = useState<string[]>([]);
   const { t } = useTranslation();