|
|
@@ -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" />} />
|