This is an automated email from the ASF dual-hosted git repository.

enzomartellucci pushed a commit to branch refactor/antd5-radio
in repository https://gitbox.apache.org/repos/asf/superset.git

commit aaaad9028d728cb2a00fd0a2cb78db5bb49c0ef8
Author: Enzo Martellucci <[email protected]>
AuthorDate: Sat Jan 25 18:33:22 2025 +0100

    refactor(CommonFrame): Implements Radio from Antd5
---
 .../controls/DateFilterControl/components/CommonFrame.tsx    | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/superset-frontend/src/explore/components/controls/DateFilterControl/components/CommonFrame.tsx
 
b/superset-frontend/src/explore/components/controls/DateFilterControl/components/CommonFrame.tsx
index 30365ffc28..24a0c54d9f 100644
--- 
a/superset-frontend/src/explore/components/controls/DateFilterControl/components/CommonFrame.tsx
+++ 
b/superset-frontend/src/explore/components/controls/DateFilterControl/components/CommonFrame.tsx
@@ -41,16 +41,12 @@ export function CommonFrame(props: FrameComponentProps) {
       <div className="section-title" data-test={DateFilterTestKey.CommonFrame}>
         {t('Configure Time Range: Last...')}
       </div>
-      <Radio.Group
+      <Radio.VerticalGroup
+        size='large'
         value={commonRange}
         onChange={(e: any) => props.onChange(e.target.value)}
-      >
-        {COMMON_RANGE_OPTIONS.map(({ value, label }) => (
-          <Radio key={value} value={value} className="vertical-radio">
-            {label}
-          </Radio>
-        ))}
-      </Radio.Group>
+        options={COMMON_RANGE_OPTIONS}
+      />
     </>
   );
 }

Reply via email to