Remove unused dependencies

This commit is contained in:
2025-11-28 10:13:46 +00:00
parent 032b966a9d
commit 239e0e64da
7 changed files with 7 additions and 45 deletions

View File

@@ -18,7 +18,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '.
import { Switch } from './ui/switch';
import { Label } from './ui/label';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
import { Trash2, X } from 'lucide-react';
import { X } from 'lucide-react';
const DeviationList = ({
deviations,

View File

@@ -14,7 +14,6 @@ The following components are from [shadcn/ui](https://ui.shadcn.com) (MIT Licens
- **`popover.tsx`** - Popover/dropdown container
- **`select.tsx`** - Select/dropdown menu
- **`separator.tsx`** - Horizontal/vertical divider
- **`slider.tsx`** - Range slider input
- **`switch.tsx`** - Toggle switch
- **`tooltip.tsx`** - Tooltip wrapper

View File

@@ -28,7 +28,6 @@ const FormTimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
const [displayValue, setDisplayValue] = React.useState(value)
const [isPickerOpen, setIsPickerOpen] = React.useState(false)
const [showError, setShowError] = React.useState(false)
const [touched, setTouched] = React.useState(false)
const containerRef = React.useRef<HTMLDivElement>(null)
const [pickerHours, pickerMinutes] = (value || "00:00").split(':').map(Number)
@@ -42,7 +41,6 @@ const FormTimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
const handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {
const inputValue = e.target.value.trim()
setTouched(true)
setShowError(false)
if (inputValue === '') {

View File

@@ -1,26 +0,0 @@
import * as React from "react"
import * as SliderPrimitive from "@radix-ui/react-slider"
import { cn } from "../../lib/utils"
const Slider = React.forwardRef<
React.ElementRef<typeof SliderPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
>(({ className, ...props }, ref) => (
<SliderPrimitive.Root
ref={ref}
className={cn(
"relative flex w-full touch-none select-none items-center",
className
)}
{...props}
>
<SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20">
<SliderPrimitive.Range className="absolute h-full bg-primary" />
</SliderPrimitive.Track>
<SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" />
</SliderPrimitive.Root>
))
Slider.displayName = SliderPrimitive.Root.displayName
export { Slider }