new changes

This commit is contained in:
n4ze3m 2023-04-10 20:25:37 +05:30
parent 241745d93d
commit 2c08175963
2 changed files with 15 additions and 17 deletions

View File

@ -6,7 +6,7 @@ generator client {
} }
datasource db { datasource db {
provider = "sqlite" provider = "postgresql"
url = env("DATABASE_URL") url = env("DATABASE_URL")
} }

View File

@ -6,9 +6,7 @@ import {
HomeIcon, HomeIcon,
XMarkIcon, XMarkIcon,
} from "@heroicons/react/24/outline"; } from "@heroicons/react/24/outline";
import { import { ChevronDownIcon } from "@heroicons/react/20/solid";
ChevronDownIcon,
} from "@heroicons/react/20/solid";
import { useUser } from "@supabase/auth-helpers-react"; import { useUser } from "@supabase/auth-helpers-react";
const navigation = [ const navigation = [
@ -27,7 +25,7 @@ export default function DashboardLayout({
children: React.ReactNode; children: React.ReactNode;
}) { }) {
const [sidebarOpen, setSidebarOpen] = useState(false); const [sidebarOpen, setSidebarOpen] = useState(false);
const user = useUser() const user = useUser();
return ( return (
<> <>
@ -121,7 +119,6 @@ export default function DashboardLayout({
</a> </a>
))} ))}
</div> </div>
</nav> </nav>
</Dialog.Panel> </Dialog.Panel>
</Transition.Child> </Transition.Child>
@ -133,7 +130,7 @@ export default function DashboardLayout({
</Transition.Root> </Transition.Root>
<div className="hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col"> <div className="hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col">
<div className="flex flex-grow flex-col overflow-y-auto bg-white pb-4 pt-5 border-r border-gray-200"> <div className="flex flex-grow flex-col overflow-y-auto border-r border-gray-200 bg-white pb-4 pt-5">
<div className="flex flex-shrink-0 items-center px-4"> <div className="flex flex-shrink-0 items-center px-4">
<img className="h-10 w-auto" src="/logo.png" alt="PageAssist" /> <img className="h-10 w-auto" src="/logo.png" alt="PageAssist" />
</div> </div>
@ -147,15 +144,19 @@ export default function DashboardLayout({
key={item.name} key={item.name}
href={item.href} href={item.href}
className={classNames( className={classNames(
item.current ? 'bg-gray-100 text-gray-900' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900', item.current
'group flex items-center px-2 py-2 text-sm font-medium rounded-md' ? "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} aria-current={item.current ? "page" : undefined}
> >
<item.icon <item.icon
className={classNames( className={classNames(
item.current ? 'text-gray-500' : 'text-gray-400 group-hover:text-gray-500', item.current
'mr-3 flex-shrink-0 h-6 w-6' ? "text-gray-500"
: "text-gray-400 group-hover:text-gray-500",
"mr-3 h-6 w-6 flex-shrink-0"
)} )}
aria-hidden="true" aria-hidden="true"
/> />
@ -191,9 +192,7 @@ export default function DashboardLayout({
/> />
<span className="ml-3 hidden text-sm font-medium text-gray-700 lg:block"> <span className="ml-3 hidden text-sm font-medium text-gray-700 lg:block">
<span className="sr-only">Open user menu for </span> <span className="sr-only">Open user menu for </span>
{ {user?.email}
user?.email
}
</span> </span>
<ChevronDownIcon <ChevronDownIcon
className="ml-1 hidden h-5 w-5 flex-shrink-0 text-gray-400 lg:block" className="ml-1 hidden h-5 w-5 flex-shrink-0 text-gray-400 lg:block"
@ -232,7 +231,6 @@ export default function DashboardLayout({
active ? "bg-gray-100" : "", active ? "bg-gray-100" : "",
"block px-4 py-2 text-sm text-gray-700" "block px-4 py-2 text-sm text-gray-700"
)} )}
> >
Logout Logout
</a> </a>