visuddhinanda 3 лет назад
Родитель
Сommit
75aa291dd5
1 измененных файлов с 1 добавлено и 13 удалено
  1. 1 13
      dashboard/src/pages/library/article/show.tsx

+ 1 - 13
dashboard/src/pages/library/article/show.tsx

@@ -1,10 +1,8 @@
 import { useRef, useState } from "react";
 import { useRef, useState } from "react";
 import { useParams } from "react-router-dom";
 import { useParams } from "react-router-dom";
-import { RadioChangeEvent, Switch } from "antd";
+import { Switch } from "antd";
 import { Drawer, Space, Radio } from "antd";
 import { Drawer, Space, Radio } from "antd";
 import {
 import {
-  AppstoreOutlined,
-  BorderOutlined,
   SettingOutlined,
   SettingOutlined,
   ProfileOutlined,
   ProfileOutlined,
   ShoppingCartOutlined,
   ShoppingCartOutlined,
@@ -46,7 +44,6 @@ const Widget = () => {
   const [articleMode, setArticleMode] = useState<ArticleMode>(
   const [articleMode, setArticleMode] = useState<ArticleMode>(
     mode as ArticleMode
     mode as ArticleMode
   );
   );
-  const [value, setValue] = useState(1);
   const [value2, setValue2] = useState(0);
   const [value2, setValue2] = useState(0);
 
 
   const box = useRef<HTMLDivElement>(null);
   const box = useRef<HTMLDivElement>(null);
@@ -61,15 +58,6 @@ const Widget = () => {
       box.current.style.display = "block";
       box.current.style.display = "block";
     }
     }
   };
   };
-  const onChange = (e: RadioChangeEvent) => {
-    setValue(e.target.value);
-    if (e.target.value === 1) {
-      closeCol();
-    }
-    if (e.target.value === 2) {
-      openCol();
-    }
-  };
 
 
   const onClose = () => {
   const onClose = () => {
     setOpen(false);
     setOpen(false);