Browse Source

changed onClose to optional

WNomunomu 2 năm trước cách đây
mục cha
commit
77f5f077a3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/app/src/components/Page/TagEditModal.tsx

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

@@ -10,7 +10,7 @@ import TagsInput from './TagsInput';
 type Props = {
   tags: string[],
   isOpen: boolean,
-  onClose: () => void,
+  onClose?: () => void,
   onTagsUpdated?: (tags: string[]) => Promise<void> | void,
 };