From b8135c3bfff1a57750f035e3cfe465482e40c775 Mon Sep 17 00:00:00 2001 From: Mahen Date: Tue, 24 Feb 2026 22:54:39 +0700 Subject: [PATCH] style: add brands button motion --- src/components/dashboards/BrandFilter.tsx | 115 ++++++++++++---------- 1 file changed, 64 insertions(+), 51 deletions(-) diff --git a/src/components/dashboards/BrandFilter.tsx b/src/components/dashboards/BrandFilter.tsx index 92d47bc..002348f 100644 --- a/src/components/dashboards/BrandFilter.tsx +++ b/src/components/dashboards/BrandFilter.tsx @@ -3,6 +3,8 @@ 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"; export function BrandFilter() { const { @@ -25,65 +27,76 @@ export function BrandFilter() { } return ( -
- - +
- {visibleBrands.map((brand) => { - const isActive = - selectedBrand?.toLowerCase() === brand.name.toLowerCase(); + - return ( +
+ {visibleBrands.map((brand) => { + const isActive = + selectedBrand?.toLowerCase() === brand.name.toLowerCase(); + + return ( + + ); + })} + + {!isExpanded && validBrands.length > 3 && ( - ); - })} + )} - {!isExpanded && validBrands.length > 3 && ( - - )} - - {isExpanded && ( - - )} + {isExpanded && ( + + )} +
-
+ ); }