From 7bf0984698e43b9aa2dd879f65951318ed410390 Mon Sep 17 00:00:00 2001 From: Maze <167211895+mazeincoding@users.noreply.github.com> Date: Sat, 31 Jan 2026 00:20:04 +0100 Subject: codebase overhaul (#697) --- apps/web/src/components/ui/toggle-group.tsx | 74 ++++++++++++++--------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'apps/web/src/components/ui/toggle-group.tsx') diff --git a/apps/web/src/components/ui/toggle-group.tsx b/apps/web/src/components/ui/toggle-group.tsx index 5842a07d..66368d50 100644 --- a/apps/web/src/components/ui/toggle-group.tsx +++ b/apps/web/src/components/ui/toggle-group.tsx @@ -2,58 +2,58 @@ import * as React from "react"; import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui"; -import { type VariantProps } from "class-variance-authority"; +import type { VariantProps } from "class-variance-authority"; -import { cn } from "../../lib/utils"; +import { cn } from "@/utils/ui"; import { toggleVariants } from "./toggle"; const ToggleGroupContext = React.createContext< - VariantProps + VariantProps >({ - size: "default", - variant: "default", + size: "default", + variant: "default", }); const ToggleGroup = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef & - VariantProps + React.ElementRef, + React.ComponentPropsWithoutRef & + VariantProps >(({ className, variant, size, children, ...props }, ref) => ( - - - {children} - - + + + {children} + + )); ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName; const ToggleGroupItem = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef & - VariantProps + React.ElementRef, + React.ComponentPropsWithoutRef & + VariantProps >(({ className, children, variant, size, ...props }, ref) => { - const context = React.useContext(ToggleGroupContext); - - return ( - - {children} - - ); + const context = React.useContext(ToggleGroupContext); + + return ( + + {children} + + ); }); ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName; -- cgit v1.3.1