Explorar el Código

:fire: Divider

visuddhinanda hace 2 años
padre
commit
b383075ef2
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7 5
      dashboard/src/components/template/ParaHandle.tsx

+ 7 - 5
dashboard/src/components/template/ParaHandle.tsx

@@ -1,4 +1,4 @@
-import { Button, Divider, Dropdown, MenuProps, message } from "antd";
+import { Button, Dropdown, MenuProps, message } from "antd";
 import { useNavigate, useSearchParams } from "react-router-dom";
 import { useNavigate, useSearchParams } from "react-router-dom";
 import { fullUrl } from "../../utils";
 import { fullUrl } from "../../utils";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
@@ -10,7 +10,7 @@ interface IWidgetParaHandleCtl {
   channels?: string[];
   channels?: string[];
   sentences: string[];
   sentences: string[];
 }
 }
-const ParaHandleCtl = ({
+export const ParaHandleCtl = ({
   book,
   book,
   para,
   para,
   mode = "read",
   mode = "read",
@@ -111,15 +111,17 @@ const ParaHandleCtl = ({
     }
     }
   };
   };
   return (
   return (
-    <Divider orientation="left">
+    <div>
       <Dropdown
       <Dropdown
         menu={{ items, onClick }}
         menu={{ items, onClick }}
         placement="bottomLeft"
         placement="bottomLeft"
         trigger={["click"]}
         trigger={["click"]}
       >
       >
-        <Button type="text">{para}</Button>
+        <Button size="small" type="text">
+          {para}
+        </Button>
       </Dropdown>
       </Dropdown>
-    </Divider>
+    </div>
   );
   );
 };
 };