diff --git a/src/app/client/[client]/page.tsx b/src/app/client/page.tsx
similarity index 73%
rename from src/app/client/[client]/page.tsx
rename to src/app/client/page.tsx
index d01bd4b..f461635 100644
--- a/src/app/client/[client]/page.tsx
+++ b/src/app/client/page.tsx
@@ -1,14 +1,12 @@
"use client";
-import { AppSidebar } from "@/components/app-sidebar";
-import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
import ClientCard from "@/components/client-card";
import DeviceCard from "@/components/device-card";
-import { useSearchParams, useParams } from "next/navigation";
+import { useSearchParams } from "next/navigation";
export default function Page() {
const searchParams = useSearchParams();
- const { client } = useParams();
+ const client = searchParams.get("client");
const clienti = [
{
@@ -90,23 +88,11 @@ export default function Page() {
];
return (
-
-
-
-
-
-
-
+
);
-}
+}
\ No newline at end of file
diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 585ddf5..5dab631 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -32,21 +32,10 @@ import { useSearchParams } from "next/navigation";
export default function Page() {
return (
-
-
-
-
-
- THIS IS A DASHBOARD, AND I DON'T KNOW WHAT TO PUT IN IT
-
-
-
-
+
+
+ THIS IS A DASHBOARD, AND I DON'T KNOW WHAT TO PUT IN IT
+
+
);
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index f7fa87e..cfdb3f0 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
+import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
+import { AppSidebar } from "@/components/app-sidebar";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -27,7 +29,18 @@ export default function RootLayout({
- {children}
+
+
+
+ {children}
+
+