Skip to content

Commit

Permalink
Remove deprecated display prop from EuiTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed May 24, 2022
1 parent d6a2c64 commit 07619a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const MainNavigation = () => {
<Nav>
<EuiFlexGroup gutterSize="l" alignItems="center">
<EuiFlexItem>
<EuiTabs display="condensed">
<EuiTabs>
<EuiTab
isSelected={section === Section.LiveQueries}
{...useRouterNavigate(Section.LiveQueries)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ const TabNavigationItemComponent = ({

const TabNavigationItem = React.memo(TabNavigationItemComponent);

export const TabNavigationComponent: React.FC<TabNavigationProps> = ({
display,
navTabs,
tabName,
}) => {
export const TabNavigationComponent: React.FC<TabNavigationProps> = ({ navTabs, tabName }) => {
const mapLocationToTab = useCallback(
(): string =>
getOr(
Expand Down Expand Up @@ -102,7 +98,7 @@ export const TabNavigationComponent: React.FC<TabNavigationProps> = ({
[navTabs, selectedTabId, search]
);

return <EuiTabs display={display}>{renderTabs}</EuiTabs>;
return <EuiTabs>{renderTabs}</EuiTabs>;
};

TabNavigationComponent.displayName = 'TabNavigationComponent';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const PageTabs = () => {
};

return (
<EuiTabs display="condensed" style={{ paddingLeft: 16 }} data-test-subj="uptimeTabs">
<EuiTabs style={{ paddingLeft: 16 }} data-test-subj="uptimeTabs">
{renderTabs()}
</EuiTabs>
);
Expand Down

0 comments on commit 07619a8

Please sign in to comment.