瀏覽代碼

changed onClose to optional

WNomunomu 2 年之前
父節點
當前提交
77f5f077a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,
 };