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:
asepharyana
2026-07-23 12:19:43 +07:00
co-authored by Claude Opus 4.8
parent 18bf58be1a
commit d94524b70d
65 changed files with 1832 additions and 1492 deletions
+5 -5
View File
@@ -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 };