From bb68f843a025e550b2019876a2f7e42bcfe57813 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 20 Oct 2021 16:12:57 +0200 Subject: [PATCH] drawer solution --- frontend/src/components/AddNewIconButton.js | 128 ++++++++++++++++++++ frontend/src/components/AppNavbar.js | 31 ++--- 2 files changed, 144 insertions(+), 15 deletions(-) create mode 100644 frontend/src/components/AddNewIconButton.js diff --git a/frontend/src/components/AddNewIconButton.js b/frontend/src/components/AddNewIconButton.js new file mode 100644 index 00000000..0525cf54 --- /dev/null +++ b/frontend/src/components/AddNewIconButton.js @@ -0,0 +1,128 @@ +import React, { useContext } from "react"; +import { + Menu, + MenuButton, + MenuList, + MenuItem, + MenuGroup, + MenuDivider, + IconButton, + chakra, + useDisclosure, + Drawer, + DrawerBody, + DrawerFooter, + DrawerHeader, + DrawerOverlay, + DrawerContent, + DrawerCloseButton, + FormLabel, + Input, + Stack, + InputGroup, + InputLeftAddon, + Box, + Textarea, + Button, +} from "@chakra-ui/react"; +import { PlusSquareIcon } from "@chakra-ui/icons"; +import UIContext from "../core/providers/UIProvider/context"; + +const AddNewIconButton = (props) => { + const ui = useContext(UIContext); + const { onOpen, isOpen, onClose } = useDisclosure(); + const firstField = React.useRef(); + return ( + <> + + + + + + Create a new dashboard from an ABI + + + + + + Name dashboard + + + + + Address + + Contract @ + + + + + + ABI +