refactor(Icons): Replaces custom icons with Ant Design 5 icons (#32112)

Replace custom icons with Ant Design 5 icons to standardize the icon
This commit is contained in:
Enzo Martellucci
2025-03-18 22:22:41 +01:00
committed by GitHub
parent 9e3052968b
commit ce6d5f5551
341 changed files with 2222 additions and 3999 deletions

View File

@@ -105,10 +105,10 @@ test('Should have add button', async () => {
render(<CollectionControl {...props} />);
expect(
await screen.findByRole('button', { name: 'plus-large' }),
await screen.findByRole('button', { name: 'plus' }),
).toBeInTheDocument();
expect(props.onChange).toHaveBeenCalledTimes(0);
userEvent.click(screen.getByRole('button', { name: 'plus-large' }));
userEvent.click(screen.getByRole('button', { name: 'plus' }));
expect(props.onChange).toHaveBeenCalledWith([
{ key: 'hrYAZ5iBH' },
undefined,

View File

@@ -163,7 +163,7 @@ class CollectionControl extends Component {
<HeaderContainer>
<ControlHeader {...this.props} />
<AddIconButton onClick={this.onAdd}>
<Icons.PlusLarge
<Icons.PlusOutlined
iconSize="s"
iconColor={theme.colors.grayscale.light5}
/>