visuddhinanda 3 лет назад
Родитель
Сommit
98878d7231
1 измененных файлов с 1 добавлено и 9 удалено
  1. 1 9
      dashboard/src/components/template/Wbw/WbwDetailBookMark.tsx

+ 1 - 9
dashboard/src/components/template/Wbw/WbwDetailBookMark.tsx

@@ -1,5 +1,4 @@
-import { useState, useEffect } from "react";
-import { useIntl } from "react-intl";
+import { useState } from "react";
 import type { RadioChangeEvent } from "antd";
 import { Radio } from "antd";
 import { Input } from "antd";
@@ -8,18 +7,11 @@ import { IWbw } from "./WbwWord";
 
 const { TextArea } = Input;
 
-const onTextChange = (
-  e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
-) => {
-  console.log("Change:", e.target.value);
-};
-
 interface IWidget {
   data: IWbw;
   onChange?: Function;
 }
 const Widget = ({ data, onChange }: IWidget) => {
-  const intl = useIntl();
   const [value, setValue] = useState("none");
 
   const styleColor: React.CSSProperties = {