refactor: standardize import statements and improve code consistency across components
Deploy to VPS / deploy (push) Failing after 1m35s
Deploy to VPS / deploy (push) Failing after 1m35s
- Updated import statements to use consistent semicolon usage. - Refactored component code to ensure consistent formatting and style. - Improved readability by adding missing semicolons and adjusting spacing. - Ensured all components follow the same structure for props and return statements.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Slider as SliderPrimitive } from "@base-ui/react/slider"
|
||||
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Slider({
|
||||
className,
|
||||
@@ -14,7 +14,7 @@ function Slider({
|
||||
? value
|
||||
: Array.isArray(defaultValue)
|
||||
? defaultValue
|
||||
: [min, max]
|
||||
: [min, max];
|
||||
|
||||
return (
|
||||
<SliderPrimitive.Root
|
||||
@@ -37,16 +37,16 @@ function Slider({
|
||||
className="bg-primary select-none data-horizontal:h-full data-vertical:w-full"
|
||||
/>
|
||||
</SliderPrimitive.Track>
|
||||
{Array.from({ length: _values.length }, (_, index) => (
|
||||
{_values.map((val, index) => (
|
||||
<SliderPrimitive.Thumb
|
||||
data-slot="slider-thumb"
|
||||
key={index}
|
||||
key={val ?? index}
|
||||
className="relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
|
||||
/>
|
||||
))}
|
||||
</SliderPrimitive.Control>
|
||||
</SliderPrimitive.Root>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export { Slider }
|
||||
export { Slider };
|
||||
|
||||
Reference in New Issue
Block a user