added docs and fixed level bridger
This commit is contained in:
@@ -3,6 +3,8 @@ import { redirect, notFound } from "next/navigation";
|
||||
import { getUserGuilds } from "@/lib/discord";
|
||||
import ServerSwitcher from "@/components/ServerSwitcher";
|
||||
import DashboardSidebar from "@/components/DashboardSidebar";
|
||||
import UserProfile from "@/components/UserProfile";
|
||||
|
||||
|
||||
export default async function DashboardLayout({
|
||||
children,
|
||||
@@ -35,18 +37,8 @@ export default async function DashboardLayout({
|
||||
<ServerSwitcher currentGuild={currentGuild} guilds={guilds} />
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 sm:gap-3 bg-white/5 px-3 sm:px-4 py-2 rounded-full border border-white/10 backdrop-blur-md pointer-events-auto">
|
||||
<div className="text-right hidden sm:block">
|
||||
<p className="text-sm font-semibold text-white">{session.user?.name}</p>
|
||||
</div>
|
||||
{session.user?.image && (
|
||||
<img
|
||||
src={session.user.image}
|
||||
alt="User"
|
||||
className="w-8 h-8 sm:w-10 sm:h-10 rounded-full border border-blue-500/50"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<UserProfile user={session.user} />
|
||||
|
||||
</header>
|
||||
|
||||
{/* Bot Not In Guild Content */}
|
||||
@@ -104,18 +96,8 @@ export default async function DashboardLayout({
|
||||
<ServerSwitcher currentGuild={currentGuild} guilds={guilds} />
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2 sm:gap-3 bg-white/5 px-3 sm:px-4 py-2 rounded-full border border-white/10 backdrop-blur-md pointer-events-auto">
|
||||
<div className="text-right hidden sm:block">
|
||||
<p className="text-sm font-semibold text-white">{session.user?.name}</p>
|
||||
</div>
|
||||
{session.user?.image && (
|
||||
<img
|
||||
src={session.user.image}
|
||||
alt="User"
|
||||
className="w-8 h-8 sm:w-10 sm:h-10 rounded-full border border-blue-500/50"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<UserProfile user={session.user} />
|
||||
|
||||
</header>
|
||||
|
||||
{/* Dashboard Content with Sidebar */}
|
||||
@@ -123,7 +105,8 @@ export default async function DashboardLayout({
|
||||
<DashboardSidebar guildId={guildId} />
|
||||
|
||||
{/* Main Area */}
|
||||
<div className="flex-1 overflow-y-auto bg-transparent p-4 sm:p-6 lg:p-8">
|
||||
<div className="flex-1 overflow-y-auto bg-transparent p-4 sm:p-6 lg:p-8 lg:ml-64">
|
||||
|
||||
<div className="max-w-5xl mx-auto">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user