Skip to content

Commit

Permalink
Update packages/components/src/Icon/_docs/Icon.stories.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Cassandra <cassandra.tam@cultureamp.com>
  • Loading branch information
mcwinter07 and HeartSquared authored Mar 12, 2024
1 parent 59cbb89 commit 859a7dc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/components/src/Icon/_docs/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,7 @@ export const Reference: Story = {
<div className="flex flex-col gap-16">
<ul className={styles.grid}>
{Object.keys(ICONS)
.filter(iconName => {
if (
deprecatedList.find(deprecatedIcon => deprecatedIcon === iconName)
) {
return
}
return iconName
})
.filter(iconName => !deprecatedList.includes(iconName))
.map(iconName => {
const icon = ICONS[iconName as keyof typeof ICONS]({
role: "presentation",
Expand Down

0 comments on commit 859a7dc

Please sign in to comment.