expandable choose node

This commit is contained in:
ari committed 2022-07-12 21:12:03 -04:00
1 parent 0b381a6e50
commit befe293f1c
7 files changed
+128 -46

No files matched your search

@@ -2,7 +2,7 @@ import React, { FC, useState } from "react";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Page } from "components/Page";
import { DAGGraphBoard } from "components/DAGGraph/board";
import { makeAutomationNodes } from "./index";
import { useAutomationNodes } from "./index";
import { useHA } from "haService";
import { AutomationActionData } from "types/automations";
import { createUpdaterFromAutomationData } from "../updater";
@@ -22,7 +22,7 @@ const Demo: FC<{
state,
setState
);
const elementData = makeAutomationNodes(state, {
const elementData = useAutomationNodes(state, {
dims: {
...DEFAULT_DIMS,
flipped: props.flipped,