Skip to content

Commit

Permalink
addresses feedback on types change
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall committed Oct 19, 2020
1 parent 8e5d672 commit 5c5ef90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export class DeleteSpacesButton extends Component<Props, State> {

let ButtonComponent: any = EuiButton;

const extraProps: Partial<EuiButtonIconProps> = {};
let extraProps: EuiButtonIconProps | undefined;

if (this.props.style === 'icon') {
ButtonComponent = EuiButtonIcon;
extraProps.iconType = 'trash';
extraProps = { iconType: 'trash' };
}

return (
Expand Down

0 comments on commit 5c5ef90

Please sign in to comment.