Skip to content

Commit

Permalink
chore(www): Updated nav config
Browse files Browse the repository at this point in the history
  • Loading branch information
alifarooq9 committed Apr 7, 2024
1 parent 53be4cd commit 786a399
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1,721 deletions.
37 changes: 19 additions & 18 deletions apps/www/src/components/ui/label.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
"use client"
"use client";

import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cva, type VariantProps } from "class-variance-authority"
import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cva } from "class-variance-authority";
import type { VariantProps } from "class-variance-authority";

import { cn } from "@/lib/utils"
import { cn } from "@/lib/utils";

const labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
)
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
);

const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
VariantProps<typeof labelVariants>
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
<LabelPrimitive.Root
ref={ref}
className={cn(labelVariants(), className)}
{...props}
/>
))
Label.displayName = LabelPrimitive.Root.displayName
<LabelPrimitive.Root
ref={ref}
className={cn(labelVariants(), className)}
{...props}
/>
));
Label.displayName = LabelPrimitive.Root.displayName;

export { Label }
export { Label };
12 changes: 4 additions & 8 deletions apps/www/src/config/nav.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
export const navConfig = {
items: [
{
label: "Starterkits",
href: "/starterkits",
label: "SaaS StarterKit",
href: "/saas-starterkit",
},
{
label: "Components",
href: "/components",
},
{
label: "Blog",
href: "/blog",
label: "Blocks",
href: "/blocks",
},
{
label: "Docs",
Expand Down
7 changes: 4 additions & 3 deletions apps/www/src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
import { clsx } from "clsx";
import type { ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
return twMerge(clsx(inputs));
}
Loading

0 comments on commit 786a399

Please sign in to comment.