From cb535460350bd510dd4b2b7d6bc3c6ec5f5bcdf1 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 10 May 2023 00:53:37 -0300
Subject: almost first document

---
 packages/exchange-backoffice-ui/src/Dashborad.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 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 8e137d69d..a540caa8d 100644
--- a/packages/exchange-backoffice-ui/src/Dashborad.tsx
+++ b/packages/exchange-backoffice-ui/src/Dashborad.tsx
@@ -1,4 +1,4 @@
-import { Fragment, h } from "preact";
+import { ComponentChildren, Fragment, VNode, h } from "preact";
 import { Dialog, Menu, Transition } from "@headlessui/react";
 import {
   Bars3Icon,
@@ -40,7 +40,11 @@ function classNames(...classes: string[]) {
   return classes.filter(Boolean).join(" ");
 }
 
-export function Dashboard() {
+export function Dashboard({
+  children,
+}: {
+  children: ComponentChildren;
+}): VNode {
   const [sidebarOpen, setSidebarOpen] = useState(false);
 
   return (
@@ -364,7 +368,7 @@ export function Dashboard() {
           </div>
 
           <main class="py-10">
-            <div class="px-4 sm:px-6 lg:px-8">{/* Your content */}</div>
+            <div class="px-4 sm:px-6 lg:px-8">{children}</div>
           </main>
         </div>
       </div>
-- 
cgit v1.2.3

