Timothy Pomeroy 2 年之前
父节点
当前提交
03295ba62f
共有 1 个文件被更改,包括 2 次插入14 次删除
  1. 2 14
      components/Automation.js

+ 2 - 14
components/Automation.js

@@ -1,10 +1,9 @@
 import { useEffect, useState } from "react";
-import { Button, Icon, Steps, Typography } from "tiny-ui";
+import { Button, Icon, Steps } from "tiny-ui";
 
 import { useLocalStorage } from "lib/state";
 
 const { Step } = Steps;
-const { Paragraph } = Typography;
 
 const Automation = ({
   clients,
@@ -13,12 +12,10 @@ const Automation = ({
   automation,
   onAutomation,
   onPower,
-  busy,
-  ...props
+  busy
 }) => {
   const [current, setCurrent] = useLocalStorage("preset", -1, 3600);
   const [total, setTotal] = useState();
-  const [help, setHelp] = useState(false);
 
   const getTitle = (indx) => presets?.[indx]?.name || indx;
   const getName = (v) => {
@@ -119,15 +116,6 @@ const Automation = ({
             Off
           </Button>
         </Button.Group>
-        <Button.Group size="md" round>
-          <Button
-            title="Help"
-            icon={<Icon name="question-fill" />}
-            onClick={() => {
-              setHelp(true);
-            }}
-          />
-        </Button.Group>
         {(busy && (
           <Button.Group size="md" round>
             <Button title="Busy" icon={<Icon spin name="loader-3quarter" />} />