Skip to content

Commit

Permalink
[Remove warning] euisuggestitem prop type error (#6714)
Browse files Browse the repository at this point in the history
* Change custom EuiSuggestItem to oui EuiSuggestItem

* Add changelog

* Update changelog

---------

Co-authored-by: Federico Rodriguez <[email protected]>
  • Loading branch information
yenienserrano and asteriscos committed May 29, 2024
1 parent 0f3f56d commit 71199ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 113 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Removed AngularJS component `click-action` [#6613](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6613)
- Removed AngularJS service `config-handler` [#6631](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6631)
- Removed legacy discover references and methods [#6646](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6646)
- Removed custom EuiSuggestItem component in favor of OUI's native component [#6714](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6714)

## Wazuh v4.8.0 - OpenSearch Dashboards 2.10.0 - Revision 08

Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/components/eui-suggest/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { EuiSuggestInput } from './suggest_input';

export { EuiSuggestItem } from './suggest_item';

export { EuiSuggest } from './suggest';
10 changes: 5 additions & 5 deletions plugins/main/public/components/eui-suggest/suggest.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { EuiSuggestItem } from './suggest_item';
import { EuiSuggestItem } from '@elastic/eui';
import { EuiSuggestInput } from './suggest_input';

export class EuiSuggest extends Component {
state = {
value: '',
status: 'unsaved'
status: 'unsaved',
};

getValue = val => {
this.setState({
value: val
value: val,
});
};

Expand Down Expand Up @@ -76,9 +76,9 @@ EuiSuggest.propTypes = {
onInputChange: PropTypes.func,
isOpen: PropTypes.bool,
onClosePopover: PropTypes.func,
onPopoverFocus: PropTypes.func
onPopoverFocus: PropTypes.func,
};

EuiSuggestInput.defaultProps = {
status: 'unchanged'
status: 'unchanged',
};
106 changes: 0 additions & 106 deletions plugins/main/public/components/eui-suggest/suggest_item.js

This file was deleted.

0 comments on commit 71199ab

Please sign in to comment.