refactor(Radio): Upgrade Radio Component to Ant Design 5 (#32004)

This commit is contained in:
Enzo Martellucci
2025-01-31 17:45:06 +01:00
committed by GitHub
parent 1c1494d3e0
commit 468bb5f47a
17 changed files with 293 additions and 199 deletions

View File

@@ -30,7 +30,6 @@ import {
import { Global } from '@emotion/react';
import { Column } from 'react-table';
import { debounce } from 'lodash';
import { Space } from 'src/components/Space';
import { Input } from 'src/components/Input';
import {
BOOL_FALSE_DISPLAY,
@@ -141,12 +140,21 @@ const FormatPicker = ({
onChange: any;
value: FormatPickerValue;
}) => (
<Radio.Group value={value} onChange={onChange}>
<Space direction="vertical">
<Radio value={FormatPickerValue.Formatted}>{t('Formatted date')}</Radio>
<Radio value={FormatPickerValue.Original}>{t('Original value')}</Radio>
</Space>
</Radio.Group>
<Radio.GroupWrapper
spaceConfig={{
direction: 'vertical',
align: 'start',
size: 15,
wrap: false,
}}
size="large"
value={value}
onChange={onChange}
options={[
{ label: t('Formatted date'), value: FormatPickerValue.Formatted },
{ label: t('Original value'), value: FormatPickerValue.Original },
]}
/>
);
const FormatPickerContainer = styled.div`