Remove clutter

This commit is contained in:
Andras Schmelczer 2026-02-07 15:35:51 +00:00
parent c9651d25c7
commit 091cb6f4b4
4 changed files with 77 additions and 57 deletions

View file

@ -1,5 +1,4 @@
import * as SliderPrimitive from '@radix-ui/react-slider';
import { cn } from '../../lib/utils';
interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
className?: string;
@ -8,7 +7,7 @@ interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimit
export function Slider({ className, ...props }: SliderProps) {
return (
<SliderPrimitive.Root
className={cn('relative flex w-full touch-none select-none items-center', className)}
className={`relative flex w-full touch-none select-none items-center ${className || ''}`}
{...props}
>
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-warm-200 dark:bg-navy-700">

View file

@ -1,4 +0,0 @@
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export const cn = (...inputs: ClassValue[]): string => twMerge(clsx(inputs));