From 55a1e8c6e1ab34702525aadf18b1acce2d06e616 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 10 May 2023 15:01:56 -0300 Subject: fix form --- packages/exchange-backoffice-ui/src/Dashborad.tsx | 35 +++++++++++++++++------ 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'packages/exchange-backoffice-ui/src/Dashborad.tsx') diff --git a/packages/exchange-backoffice-ui/src/Dashborad.tsx b/packages/exchange-backoffice-ui/src/Dashborad.tsx index a540caa8d..19ea4a31c 100644 --- a/packages/exchange-backoffice-ui/src/Dashborad.tsx +++ b/packages/exchange-backoffice-ui/src/Dashborad.tsx @@ -16,7 +16,8 @@ import { ChevronDownIcon, MagnifyingGlassIcon, } from "@heroicons/react/20/solid"; -import { useState } from "preact/hooks"; +import { useRef, useState } from "preact/hooks"; +import { Form } from "./Form.js"; const navigation = [ { name: "Dashboard", href: "#", icon: HomeIcon, current: true }, @@ -43,9 +44,10 @@ function classNames(...classes: string[]) { export function Dashboard({ children, }: { - children: ComponentChildren; + children?: ComponentChildren; }): VNode { const [sidebarOpen, setSidebarOpen] = useState(false); + const logRef = useRef(null); return ( <> @@ -53,6 +55,7 @@ export function Dashboard({ @@ -195,9 +198,12 @@ export function Dashboard({ alt="Your Company" /> +
+

+