From 97d4bad7f4148bb50c8a058f08943ff0bfd9a483 Mon Sep 17 00:00:00 2001 From: Haydn Ewers <27211+haydn@users.noreply.github.com> Date: Fri, 24 Apr 2020 19:09:13 +1000 Subject: [PATCH] Add info panel Fixes #105 --- src/Editor.js | 15 +++++++++++++++ src/components/InfoPanel.js | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/components/InfoPanel.js diff --git a/src/Editor.js b/src/Editor.js index 3e443be..f2a4e3c 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -3,6 +3,8 @@ import { set, or, not, and } from "set-fns"; import useStateSnapshots from "use-state-snapshots"; import { Draggable, Droppable, DragDropContext } from "react-beautiful-dnd"; +import InfoPanel from "./components/InfoPanel"; + import useCanvasConnection from "./editor/useCanvasConnection"; import exampleDoc from "./editor/exampleDoc"; import useKeys from "./useKeys"; @@ -937,6 +939,19 @@ const Editor = ({ config }) => { /> ) : null} +