Skip to content

Commit 9cfe9bf

Browse files
committed
alternate workaround
1 parent a896267 commit 9cfe9bf

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

packages/documentation-framework/components/sectionGallery/sectionGalleryWrapper.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,19 @@ export const SectionGalleryWrapper = ({
7070
const id = itemData.id || title;
7171
// Display beta label if tab other than a '-next' tab is marked Beta
7272
const isDeprecated =
73+
// TODO: remove hardcoded Tile when Core PR merges
74+
// https://github.com/patternfly/patternfly/pull/7178
75+
id === 'Tile' || (
7376
!isSubsection &&
7477
sources &&
7578
sources.some(
7679
(source) =>
77-
(source.source === 'react-deprecated' ||
78-
source.source === 'html-deprecated') &&
79-
// TODO: remove hardcoded Tile when Core PR merges
80-
// https://github.com/patternfly/patternfly/pull/7178
81-
(source.id === 'Tile' ||
82-
!sources.some(
83-
(source) =>
84-
source.source === 'react' ||
85-
source.source === 'html'
86-
))
80+
source.source === 'react-deprecated' ||
81+
source.source === 'html-deprecated'
8782
) &&
8883
!sources.some(
8984
(source) => source.source === 'react' || source.source === 'html'
90-
);
85+
));
9186
const isBeta =
9287
!isSubsection &&
9388
sources &&

0 commit comments

Comments
 (0)