File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
packages/canopee-react/src/prospect-client/Form/Radio/CardRadioOption Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 66} from "react" ;
77import { BasePicture } from "../../../BasePicture/BasePicture" ;
88import type { Icon as IconCommon } from "../../../Icon/IconCommon" ;
9+ import { getClassName } from "../../../utilities/getClassName" ;
910import type { Radio } from "../Radio/RadioCommon" ;
1011
1112type BaseCardRadioOptionProps = Omit < ComponentProps < typeof Radio > , "size" > & {
@@ -56,14 +57,14 @@ export const CardRadioOptionCommon = forwardRef<
5657
5758 return (
5859 < label
59- className = { [
60- "af-card-radio-option" ,
61- isInvalid && "af-card-radio-option--invalid" ,
62- isCardRadioOptionHorizontal && "af-card-radio-option--horizontal" ,
60+ className = { getClassName ( {
61+ baseClassName : "af-card-radio-option" ,
62+ modifiers : [
63+ isInvalid && "invalid" ,
64+ isCardRadioOptionHorizontal && "horizontal" ,
65+ ] ,
6366 className,
64- ]
65- . filter ( Boolean )
66- . join ( " " ) }
67+ } ) }
6768 >
6869 { icon ? < IconComponent src = { icon } role = "presentation" /> : null }
6970 { isCardRadioOptionHorizontal && src ? (
You can’t perform that action at this time.
0 commit comments