Skip to content

Commit

Permalink
fix(carbon-website): remove ibm--z and ibm--z--partition from pictogr…
Browse files Browse the repository at this point in the history
…am index (#2781)
  • Loading branch information
abbeyhrt committed Mar 10, 2022
1 parent 39f27d1 commit 76cb614
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions src/components/SVGLibraries/PictogramLibrary/PictogramCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,31 @@ import {

const IconCategory = ({ category, pictograms, columnCount }) => {
const [sectionRef, containerIsVisible] = useIntersectionObserver();

return (
<section ref={sectionRef} className={svgCategory}>
<h2 className={cx(h2, categoryTitle)}>{category}</h2>
<ul className={cx(svgGrid, pictogramList)}>
{pictograms.map((pictogram, i) => (
<SvgCard
isLastCard={(i + 1) % columnCount === 0}
containerIsVisible={containerIsVisible}
key={pictogram.name}
icon={pictogram}
height="23.5%"
width="23.5%"
/>
))}
{pictograms
.filter((pictogram) => {
if (
pictogram.name === 'ibm--z' ||
pictogram.name === 'ibm--z--partition'
) {
return false;
}
return true;
})
.map((pictogram, i) => (
<SvgCard
isLastCard={(i + 1) % columnCount === 0}
containerIsVisible={containerIsVisible}
key={pictogram.name}
icon={pictogram}
height="23.5%"
width="23.5%"
/>
))}
</ul>
</section>
);
Expand Down

1 comment on commit 76cb614

@vercel
Copy link

@vercel vercel bot commented on 76cb614 Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.