From 2c08175963733078106aeb8627d7cc3778d6b62d Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Mon, 10 Apr 2023 20:25:37 +0530 Subject: [PATCH] new changes --- prisma/schema.prisma | 2 +- src/components/Layouts/DashboardLayout.tsx | 30 ++++++++++------------ 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 6d43fd2..d72a8c3 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,7 @@ generator client { } datasource db { - provider = "sqlite" + provider = "postgresql" url = env("DATABASE_URL") } diff --git a/src/components/Layouts/DashboardLayout.tsx b/src/components/Layouts/DashboardLayout.tsx index 6709a62..a113ec9 100644 --- a/src/components/Layouts/DashboardLayout.tsx +++ b/src/components/Layouts/DashboardLayout.tsx @@ -6,9 +6,7 @@ import { HomeIcon, XMarkIcon, } from "@heroicons/react/24/outline"; -import { - ChevronDownIcon, -} from "@heroicons/react/20/solid"; +import { ChevronDownIcon } from "@heroicons/react/20/solid"; import { useUser } from "@supabase/auth-helpers-react"; const navigation = [ @@ -27,7 +25,7 @@ export default function DashboardLayout({ children: React.ReactNode; }) { const [sidebarOpen, setSidebarOpen] = useState(false); - const user = useUser() + const user = useUser(); return ( <> @@ -121,7 +119,6 @@ export default function DashboardLayout({ ))} - @@ -133,7 +130,7 @@ export default function DashboardLayout({
-
+
PageAssist
@@ -147,15 +144,19 @@ export default function DashboardLayout({ key={item.name} href={item.href} className={classNames( - item.current ? 'bg-gray-100 text-gray-900' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900', - 'group flex items-center px-2 py-2 text-sm font-medium rounded-md' - )} + item.current + ? "bg-gray-100 text-gray-900" + : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", + "group flex items-center rounded-md px-2 py-2 text-sm font-medium" + )} aria-current={item.current ? "page" : undefined} >