Skip to content

Commit

Permalink
Modify the name of popover button
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
  • Loading branch information
zhyuanqi committed Apr 25, 2024
1 parent 0c9e147 commit 91dbbac
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 78 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@
*/

import React from 'react';
import {
EuiButtonEmpty,
EuiContextMenuPanel,
EuiPanel,
EuiPopover,
EuiSelectable,
EuiSwitch,
} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { EuiContextMenuPanel, EuiPanel, EuiPopover, EuiSelectable, EuiSwitch } from '@elastic/eui';
import {
ApplicationStart,
IUiSettingsClient,
Expand All @@ -34,7 +26,7 @@ import { DataSourceOption } from '../data_source_menu/types';
import { DataSourceItem } from '../data_source_item';
import { DataSourceDropDownHeader } from '../drop_down_header';
import './data_source_aggregated_view.scss';
import { PopoverButton } from '../popover_button/popover_button';
import { DataSourceMenuPopoverButton } from '../popover_button/popover_button';

interface DataSourceAggregatedViewProps {
savedObjectsClient: SavedObjectsClientContract;
Expand Down Expand Up @@ -205,7 +197,7 @@ export class DataSourceAggregatedView extends React.Component<
<EuiPopover
id={'dataSourceSViewContextMenuPopover'}
button={
<PopoverButton
<DataSourceMenuPopoverButton
className={'dataSourceAggregatedView'}
onClick={this.onDataSourcesClick.bind(this)}
/>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
EuiPopover,
EuiContextMenuPanel,
EuiPanel,
EuiButtonEmpty,
EuiSelectable,
EuiPopoverTitle,
} from '@elastic/eui';
Expand Down Expand Up @@ -37,7 +36,7 @@ import './data_source_selectable.scss';
import { DataSourceDropDownHeader } from '../drop_down_header';
import '../button_title.scss';
import './data_source_selectable.scss';
import { PopoverButton } from '../popover_button/popover_button';
import { DataSourceMenuPopoverButton } from '../popover_button/popover_button';

interface DataSourceSelectableProps {
savedObjectsClient: SavedObjectsClientContract;
Expand Down Expand Up @@ -261,7 +260,7 @@ export class DataSourceSelectable extends React.Component<
initialFocus={'.euiSelectableSearch'}
id={'dataSourceSelectableContextMenuPopover'}
button={
<PopoverButton
<DataSourceMenuPopoverButton
className={'dataSourceSelectable'}
label={label}
onClick={this.onClick.bind(this)}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { DataSourceDropDownHeader } from '../drop_down_header';
import { DataSourceItem } from '../data_source_item';
import { LocalCluster } from '../constants';
import './data_source_view.scss';
import { PopoverButton } from '../popover_button/popover_button';
import { DataSourceMenuPopoverButton } from '../popover_button/popover_button';

interface DataSourceViewProps {
fullWidth: boolean;
Expand Down Expand Up @@ -159,7 +159,7 @@ export class DataSourceView extends React.Component<DataSourceViewProps, DataSou
<EuiPopover
id={'dataSourceViewPopover'}
button={
<PopoverButton
<DataSourceMenuPopoverButton
className={'dataSourceView'}
label={label}
onClick={this.onClick.bind(this)}
Expand All @@ -177,7 +177,6 @@ export class DataSourceView extends React.Component<DataSourceViewProps, DataSou
options={options}
singleSelection={true}
data-test-subj={'dataSourceView'}
compressed={true}
renderOption={(option) => (
<DataSourceItem
option={option}
Expand Down
Loading

0 comments on commit 91dbbac

Please sign in to comment.