Skip to content

Commit

Permalink
chore: Don't use extra span tag to render tab text
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Mar 21, 2023
1 parent 8809e40 commit 1665576
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/InventoryGroupDetail/InventoryGroupDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import {
PageSection,
Spinner,
Tab,
Tabs,
TabTitleText
Tabs
} from '@patternfly/react-core';
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -50,7 +49,7 @@ const InventoryGroupDetail = ({ groupId }) => {
>
<Tab
eventKey={0}
title={<TabTitleText>Systems</TabTitleText>}
title='Systems'
aria-label="Group systems tab"
>
<PageSection>
Expand All @@ -59,7 +58,7 @@ const InventoryGroupDetail = ({ groupId }) => {
</Tab>
<Tab
eventKey={1}
title={<TabTitleText>Group info</TabTitleText>}
title='Group info'
aria-label="Group info tab"
>
{activeTabKey === 1 && ( // helps to lazy load the component
Expand Down

0 comments on commit 1665576

Please sign in to comment.