|
|
@@ -1,4 +1,3 @@
|
|
|
-import { Input, Divider } from "antd";
|
|
|
import { UploadFile } from "antd/es/upload/interface";
|
|
|
import { IAttachmentResponse } from "../../api/Attachments";
|
|
|
import WbwDetailUpload from "./WbwDetailUpload";
|
|
|
@@ -11,22 +10,6 @@ interface IWidget {
|
|
|
onUpload?: Function;
|
|
|
}
|
|
|
const Widget = ({ data, onChange, onUpload }: IWidget) => {
|
|
|
- const onWordChange = (
|
|
|
- e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
|
|
- ) => {
|
|
|
- console.log("onWordChange:", e.target.value);
|
|
|
- if (typeof onChange !== "undefined") {
|
|
|
- onChange({ field: "word", value: e.target.value });
|
|
|
- }
|
|
|
- };
|
|
|
- const onRealChange = (
|
|
|
- e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
|
|
- ) => {
|
|
|
- console.log("onRealChange:", e.target.value);
|
|
|
- if (typeof onChange !== "undefined") {
|
|
|
- onChange({ field: "real", value: e.target.value });
|
|
|
- }
|
|
|
- };
|
|
|
return (
|
|
|
<div>
|
|
|
<WbwDetailUpload
|