refactor(hub): migrate dashboard to shadcn components
Replace manual CSS classes with shadcn Card, CardHeader, CardTitle, CardContent, and Badge components. Remove inline <style> block — use Tailwind utility classes via shadcn theme tokens. Add Biome formatting across all components. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
18bf58be1a
commit
d94524b70d
@@ -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
|
||||
@@ -46,7 +46,7 @@ function Slider({
|
||||
))}
|
||||
</SliderPrimitive.Control>
|
||||
</SliderPrimitive.Root>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export { Slider }
|
||||
export { Slider };
|
||||
|
||||
Reference in New Issue
Block a user