Panel CSS Fix and Account Path Update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { ThemeProvider } from '@/components/theme-provider';
|
||||
import { ClerkProvider } from '@clerk/nextjs';
|
||||
|
||||
import '../globals.css'
|
||||
|
||||
@@ -12,9 +13,11 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
<ClerkProvider>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</ClerkProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import axios from 'axios';
|
||||
import { useUser } from '@clerk/nextjs';
|
||||
import { Button } from '../../../components/ui/button';
|
||||
import { Input } from '../../../components/ui/input';
|
||||
import { Label } from '../../../components/ui/label';
|
||||
import { Card, CardHeader, CardContent, CardFooter } from '../../../components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Card, CardHeader, CardContent, CardFooter } from '@/components/ui/card';
|
||||
|
||||
const AccountPage = () => {
|
||||
const { user } = useUser();
|
||||
@@ -3,12 +3,12 @@
|
||||
export default function Dashboard() {
|
||||
return (
|
||||
<div className="container mx-auto">
|
||||
<h1 className="text-3xl font-semibold text-white mb-6">Dashboard</h1>
|
||||
<h1 className="text-3xl font-semibold mb-6">Dashboard</h1>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{[...Array(6)].map((_, i) => (
|
||||
<div key={i} className="bg-white rounded-lg shadow-md p-6">
|
||||
<div key={i} className="bg-white dark:bg-neutral-800 rounded-lg shadow-md p-6">
|
||||
<h2 className="text-xl font-semibold mb-4">Card {i + 1}</h2>
|
||||
<p className="text-gray-600">This is some placeholder content for Card {i + 1}.</p>
|
||||
<p className="">This is some placeholder content for Card {i + 1}.</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function RootLayout({
|
||||
<Sidebar/>
|
||||
<div className="flex-1 flex flex-col overflow-hidden">
|
||||
<Navbar />
|
||||
<main className="flex-1 overflow-x-hidden overflow-y-auto bg-gray-200 p-6">
|
||||
<main className="flex-1 overflow-x-hidden overflow-y-auto text-black dark:text-white bg-neutral-100 dark:bg-neutral-900 p-6">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
18
src/app/(panels)/suite/patient/dashboard/page.tsx
Normal file
18
src/app/(panels)/suite/patient/dashboard/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client"
|
||||
|
||||
export default function Dashboard() {
|
||||
return (
|
||||
<div className="container mx-auto">
|
||||
<h1 className="text-3xl font-semibold mb-6">Dashboard</h1>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{[...Array(6)].map((_, i) => (
|
||||
<div key={i} className="bg-white dark:bg-neutral-800 rounded-lg shadow-md p-6">
|
||||
<h2 className="text-xl font-semibold mb-4">Card {i + 1}</h2>
|
||||
<p className="">This is some placeholder content for Card {i + 1}.</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,11 +1,26 @@
|
||||
"use client"
|
||||
|
||||
import { useState } from "react"
|
||||
import Sidebar from "@/components/panel-ui/patient/app-sidebar"
|
||||
import Navbar from "@/components/panel-ui/patient/app-navbar"
|
||||
import { SidebarProvider } from "@/components/ui/sidebar"
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const [isSidebarOpen] = useState(true)
|
||||
|
||||
return (
|
||||
<section>{children}</section>
|
||||
<SidebarProvider defaultOpen={isSidebarOpen} >
|
||||
<Sidebar/>
|
||||
<div className="flex-1 flex flex-col overflow-hidden">
|
||||
<Navbar />
|
||||
<main className="flex-1 overflow-x-hidden overflow-y-auto text-black dark:text-white bg-neutral-100 dark:bg-neutral-900 p-6">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</SidebarProvider>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user