From ab77ce681a9b98037912a4cecdda7dddae615312 Mon Sep 17 00:00:00 2001 From: Andre H Date: Fri, 1 Mar 2024 13:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20radioItem=20leftIcon=20?= =?UTF-8?q?use=20span?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/shared/Radio/RadioItem.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/shared/Radio/RadioItem.tsx b/packages/frontend/src/components/shared/Radio/RadioItem.tsx index 4a2c2e37..017d9f69 100644 --- a/packages/frontend/src/components/shared/Radio/RadioItem.tsx +++ b/packages/frontend/src/components/shared/Radio/RadioItem.tsx @@ -75,8 +75,11 @@ export const RadioItem = ({ className={indicator({ className: indicatorProps?.className })} /> - {leftIcon && - cloneIcon(leftIcon, { className: icon(), 'aria-hidden': true })} + {leftIcon && ( + + {cloneIcon(leftIcon, { className: icon(), 'aria-hidden': true })} + + )} {label && (