diff --git a/src/components/dashboards/BrandFilter.tsx b/src/components/dashboards/BrandFilter.tsx
index 002348f..13006f5 100644
--- a/src/components/dashboards/BrandFilter.tsx
+++ b/src/components/dashboards/BrandFilter.tsx
@@ -1,22 +1,18 @@
"use client";
-import { cn } from "@/lib/utils";
import { useBrandFilter } from "@/src/hooks/useBrandFilter";
-import { Button } from "../ui/button";
-import { ChevronRight } from "lucide-react";
import { motion } from "framer-motion";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "../ui/select";
export function BrandFilter() {
- const {
- isLoading,
- totalCount,
- selectedBrand,
- visibleBrands,
- isExpanded,
- validBrands,
- setIsExpanded,
- handleSelect,
- } = useBrandFilter();
+ const { isLoading, totalCount, selectedBrand, validBrands, handleSelect } =
+ useBrandFilter();
if (isLoading) {
return (
@@ -31,72 +27,35 @@ export function BrandFilter() {
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.2, ease: "circOut" }}
- className="flex items-center justify-center"
>
-
-
-
-
- {visibleBrands.map((brand) => {
- const isActive =
- selectedBrand?.toLowerCase() === brand.name.toLowerCase();
-
- return (
-
- );
- })}
-
- {!isExpanded && validBrands.length > 3 && (
-
- )}
-
- {isExpanded && (
-
- )}
-
-
+ {brand.name} ({brand.count.toLocaleString()})
+
+ ))}
+
+
);
}
diff --git a/src/components/dashboards/DashboardClient.tsx b/src/components/dashboards/DashboardClient.tsx
index d848af8..2584bd7 100644
--- a/src/components/dashboards/DashboardClient.tsx
+++ b/src/components/dashboards/DashboardClient.tsx
@@ -66,7 +66,6 @@ export default function DashboardClient() {
title="Total Ulasan"
value={totalReviews}
icon={MessageSquareText}
- trend={{ value: 12.5, isPositive: true }}
delay={0}
/>
diff --git a/src/components/dashboards/ExportExcel.tsx b/src/components/dashboards/ExportExcel.tsx
index 1e2a39b..164fae9 100644
--- a/src/components/dashboards/ExportExcel.tsx
+++ b/src/components/dashboards/ExportExcel.tsx
@@ -13,7 +13,7 @@ export default function ExportExcel() {