From 277a2376547d5aa7f603f76c23df2734a0b7962c Mon Sep 17 00:00:00 2001 From: Mahen Date: Tue, 31 Mar 2026 21:22:32 +0700 Subject: [PATCH] style: change list brand to dropdown menu format --- src/components/dashboards/BrandFilter.tsx | 111 +++---- src/components/dashboards/DashboardClient.tsx | 1 - src/components/dashboards/ExportExcel.tsx | 2 +- src/components/dashboards/ReviewTable.tsx | 285 ------------------ 4 files changed, 36 insertions(+), 363 deletions(-) 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" > -
-