|
@@ -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("");
|