= 2 年之前
父節點
當前提交
ede8c14c34
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/components/EditorsPage.js

+ 1 - 5
src/components/EditorsPage.js

@@ -34,11 +34,7 @@ const datas = [
   },
 ];
 
-export const EditorsPage = (
-  data = { type: "", name: "", text: "", index: "", theme: "", font: "" },
-  onSave
-  //   onChange
-) => {
+export const EditorsPage = (onSave) => {
   const [editors, setEditors] = useState(datas);
   const [title, setTitle] = useState("");
   const [description, setDescription] = useState("");