Skip to content

Commit

Permalink
chore: Skip components in Deprecated folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Jan 11, 2024
1 parent a1ec359 commit c38b656
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/screenshots/screenshotReactStyleguide.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const screenshotReactStyleguide = async (page, args, config, theme) => {
console.log('⌛ Screenshotting components...')

for (const component of components) {
// Skip components in Deprecated folder
if (component.link.includes('Deprecated')) continue

const componentConfig = config[component.name] || {}
const componentViewportSpec =
(componentConfig.viewports && componentConfig.viewports[args.viewport]) ||
Expand Down

0 comments on commit c38b656

Please sign in to comment.