mirror of
https://github.com/apache/superset.git
synced 2026-05-31 21:29:19 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user