From c618b4c58da3070c9645cb11ddcd2e4f481e4a31 Mon Sep 17 00:00:00 2001 From: shadcn Date: Tue, 22 Nov 2022 12:42:47 +0400 Subject: [PATCH] feat: implement responsive styles for dashboard --- app/(dashboard)/dashboard/layout.tsx | 35 ++++++------- app/(editor)/editor/layout.tsx | 2 +- app/(marketing)/layout.tsx | 35 +++++++++---- components/dashboard/billing-form.tsx | 4 +- components/dashboard/editor.tsx | 2 +- components/dashboard/nav.tsx | 74 ++++++++++----------------- components/main-nav.tsx | 34 ++++++------ config/dashboard.ts | 44 ++++++++++++++++ types/index.d.ts | 10 +++- 9 files changed, 142 insertions(+), 98 deletions(-) create mode 100644 config/dashboard.ts diff --git a/app/(dashboard)/dashboard/layout.tsx b/app/(dashboard)/dashboard/layout.tsx index dd48f0b..f4e08df 100644 --- a/app/(dashboard)/dashboard/layout.tsx +++ b/app/(dashboard)/dashboard/layout.tsx @@ -1,10 +1,10 @@ import { notFound } from "next/navigation" -import Link from "next/link" +import { dashboardConfig } from "@/config/dashboard" import { getCurrentUser } from "@/lib/session" import { DashboardNav } from "@/components/dashboard/nav" import { UserAccountNav } from "@/components/dashboard/user-account-nav" -import { Icons } from "@/components/icons" +import { MainNav } from "@/components/main-nav" interface DashboardLayoutProps { children?: React.ReactNode @@ -20,23 +20,22 @@ export default async function DashboardLayout({ } return ( -
-
- - - Taxonomy - - +
+
+
+ + +
-
-