UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update sidebar badge
Dillion Verma61481f7bf04a
diff --git a/components/sidebar-nav.tsx b/components/sidebar-nav.tsxindex 64c57e58..8c15b3b9 100644--- a/components/sidebar-nav.tsx+++ b/components/sidebar-nav.tsx@@ -18,7 +18,7 @@ export function DocsSidebarNav({ items }: DocsSidebarNavProps) {return items.length ? (<div className="w-full pb-20">{items.map((item, index) => (- <div key={index} className={cn("pb-4")}>+ <div key={index} className={"pb-4"}><h4 className="mb-1 rounded-md px-2 py-1 text-sm font-semibold">{item.title}</h4>@@ -64,6 +64,11 @@ export function DocsSidebarNavItems({{item.label}</span>)}+ {item.paid && (+ <span className="ml-2 rounded-md bg-[#4ade80] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">+ Paid+ </span>+ )}{item.external && <ExternalLinkIcon className="ml-2 size-4" />}</Link>) : (@@ -80,6 +85,11 @@ export function DocsSidebarNavItems({{item.label}</span>)}+ {item.paid && (+ <span className="ml-2 rounded-md bg-[#4ade80] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">+ Paid+ </span>+ )}</span>),)}diff --git a/config/docs.ts b/config/docs.tsindex db704656..aedd038a 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -74,6 +74,7 @@ export const docsConfig: DocsConfig = {href: `/docs/templates/startup`,items: [],label: "New",+ paid: true,event: "template_startup_clicked",},{@@ -82,6 +83,7 @@ export const docsConfig: DocsConfig = {items: [],disabled: true,label: "Coming soon",+ paid: true,event: "template_saas_clicked",},{@@ -90,12 +92,13 @@ export const docsConfig: DocsConfig = {items: [],disabled: true,label: "Coming soon",+ paid: true,event: "template_app_clicked",},],},{- title: "Landing Page Components",+ title: "Components",items: [{title: "Marquee",@@ -153,6 +156,12 @@ export const docsConfig: DocsConfig = {items: [],label: "",},+ {+ title: "File Tree",+ href: `/docs/components/file-tree`,+ items: [],+ label: "New",+ },],},@@ -222,17 +231,6 @@ export const docsConfig: DocsConfig = {},],},- {- title: "Developer Components",- items: [- {- title: "File Tree",- href: `/docs/components/file-tree`,- items: [],- label: "New",- },- ],- },{title: "Text Animations",items: [diff --git a/types/index.d.ts b/types/index.d.tsindex a52ba516..09c6f8a2 100644--- a/types/index.d.ts+++ b/types/index.d.ts@@ -7,6 +7,7 @@ export interface NavItem {external?: boolean;icon?: keyof typeof Icons;label?: string;+ paid?: boolean;event?: string;}