From f21f4b285576afd4ec8eb3e472afa8ede325fb19 Mon Sep 17 00:00:00 2001 From: shadcn Date: Fri, 4 Nov 2022 16:55:31 +0400 Subject: [PATCH] feat: implement new dashboard design --- app/(dashboard)/dashboard/layout.tsx | 40 ++++++++++++---------- app/(dashboard)/dashboard/page.tsx | 12 +++---- app/(editor)/editor/[postId]/not-found.tsx | 2 +- app/(editor)/editor/[postId]/page.tsx | 9 +++-- components/dashboard-branding.tsx | 10 ------ components/dashboard-header.tsx | 4 +-- components/dashboard-nav.tsx | 4 +-- components/ui/avatar.tsx | 3 +- components/ui/dropdown.tsx | 2 +- components/user-account-nav.tsx | 18 +++------- components/user-avatar.tsx | 2 +- 11 files changed, 47 insertions(+), 59 deletions(-) delete mode 100644 components/dashboard-branding.tsx diff --git a/app/(dashboard)/dashboard/layout.tsx b/app/(dashboard)/dashboard/layout.tsx index 15f21b2..9849fc5 100644 --- a/app/(dashboard)/dashboard/layout.tsx +++ b/app/(dashboard)/dashboard/layout.tsx @@ -1,10 +1,11 @@ import { headers } from "next/headers" +import { notFound } from "next/navigation" +import Link from "next/link" import { getSession } from "@/lib/session" -import { DashboardBranding } from "@/components/dashboard-branding" import { DashboardNav } from "@/components/dashboard-nav" import { UserAccountNav } from "@/components/user-account-nav" -import { notFound } from "next/navigation" +import { Icons } from "@/components/icons" interface DashboardLayoutProps { children?: React.ReactNode @@ -30,25 +31,28 @@ export default async function DashboardLayout({ } return ( - <> -
-