Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remove warning] euisuggestitem prop type error #6714

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading