@@ -3,8 +3,8 @@ import { useElementSize } from "../../hooks/useElementSize";
33import Plus from "../../assets/svgs/accordion/plus.svg" ;
44import Minus from "../../assets/svgs/accordion/minus.svg" ;
55
6- import clsx from "clsx" ;
76import { Button } from "react-aria-components" ;
7+ import { cn } from "../../utils" ;
88
99interface AccordionItemProps {
1010 setExpanded : React . Dispatch < React . SetStateAction < number > > ;
@@ -25,7 +25,7 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
2525 return (
2626 < div className = "my-2" >
2727 < Button
28- className = { clsx (
28+ className = { cn (
2929 "bg-klerosUIComponentsWhiteBackground border-klerosUIComponentsStroke border" ,
3030 "hover-medium-blue hover-short-transition hover:cursor-pointer" ,
3131 "rounded-[3px] px-8 py-[11.5px]" ,
@@ -35,18 +35,14 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
3535 >
3636 { title }
3737 { expanded ? (
38- < Minus
39- className = { clsx ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
40- />
38+ < Minus className = { cn ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) } />
4139 ) : (
42- < Plus
43- className = { clsx ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
44- />
40+ < Plus className = { cn ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) } />
4541 ) }
4642 </ Button >
4743 < div
4844 style = { { height : expanded ? `${ height . toString ( ) } px` : 0 } }
49- className = { clsx (
45+ className = { cn (
5046 expanded ? `overflow-visible` : "overflow-hidden" ,
5147 "transition-[height] duration-(--klerosUIComponentsTransitionSpeed) ease-initial" ,
5248 ) }
0 commit comments