Skip to content

Commit

Permalink
Undo unnecessary EuiSmallButton* uses
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 19, 2024
1 parent d99228d commit fab0916
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
EuiPage,
EuiPageBody,
EuiSpacer,
EuiSmallButton,
EuiButton,
EuiSteps,
EuiPageSideBar,
EuiBottomBar,
EuiSmallButtonEmpty,
EuiButtonEmpty,
} from '@elastic/eui';
import React, { useCallback, useEffect, useState } from 'react';
import { ConfigureS3Datasource } from './configure_s3_datasource';
Expand Down Expand Up @@ -194,7 +194,7 @@ export function Configure(props: ConfigureDatasourceProps) {
<EuiBottomBar>
<EuiFlexGroup justifyContent="flexEnd">
<EuiFlexItem grow={false}>
<EuiSmallButtonEmpty
<EuiButtonEmpty
onClick={() => {
window.location.hash = '#/new';
}}
Expand All @@ -203,20 +203,20 @@ export function Configure(props: ConfigureDatasourceProps) {
iconType="cross"
>
Cancel
</EuiSmallButtonEmpty>
</EuiButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSmallButton
<EuiButton
onClick={() => (page === 'review' ? setPage('configure') : {})}
color="ghost"
size="s"
iconType="arrowLeft"
>
Previous
</EuiSmallButton>
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSmallButton
<EuiButton
onClick={() => (page === 'review' ? createDatasource() : setPage('review'))}
size="s"
iconType="arrowRight"
Expand All @@ -225,7 +225,7 @@ export function Configure(props: ConfigureDatasourceProps) {
{page === 'configure'
? `Review Configuration`
: `Connect to ${DatasourceTypeToDisplayName[type]}`}
</EuiSmallButton>
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiBottomBar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';
import {
EuiSmallButton,
EuiButton,
EuiCompressedComboBox,
EuiComboBoxOptionOption,
EuiCompressedFieldNumber,
Expand Down Expand Up @@ -581,15 +581,15 @@ export const DataConfigPanelItem = ({
)}
<div className="logExplorerVisConfig__content">
<EuiFlexItem grow={false}>
<EuiSmallButton
<EuiButton
data-test-subj="visualizeEditorRenderButton"
iconType="play"
onClick={() => updateChart()}
size="s"
isDisabled={isEmpty(configList[AGGREGATIONS])}
>
Update chart
</EuiSmallButton>
</EuiButton>
</EuiFlexItem>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import {
EuiSmallButton,
EuiButton,
EuiCompressedComboBox,
EuiComboBoxOptionOption,
EuiFlexItem,
Expand Down Expand Up @@ -262,14 +262,14 @@ export const TreemapConfigPanelItem = ({
<EuiSpacer size="s" />
<EuiSpacer size="s" />
<EuiFlexItem grow={false}>
<EuiSmallButton
<EuiButton
data-test-subj="visualizeEditorRenderButton"
iconType="play"
onClick={() => updateChart()}
size="s"
>
Update chart
</EuiSmallButton>
</EuiButton>
</EuiFlexItem>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { EuiSmallButtonIcon, EuiFlexGroup, EuiFlexItem, EuiPopover, EuiText } from '@elastic/eui';
import { EuiButtonIcon, EuiFlexGroup, EuiFlexItem, EuiPopover, EuiText } from '@elastic/eui';
import React, { useState } from 'react';
import { LatencyPlt, LinePlt } from '../common/plots/latency_trend_plt';

Expand All @@ -29,7 +29,7 @@ export function LatencyTrendCell({
ownFocus
anchorPosition="downCenter"
button={
<EuiSmallButtonIcon
<EuiButtonIcon
aria-label="Open popover"
onClick={() => setIsPopoverOpen(true)}
iconType="magnifyWithPlus"
Expand Down

0 comments on commit fab0916

Please sign in to comment.