Skip to content

Commit

Permalink
docs(heading): Adjust import path for Heading and DisplayHeading for …
Browse files Browse the repository at this point in the history
…their sub-components
  • Loading branch information
lzcabrera committed Sep 5, 2017
1 parent 4aa6d6c commit 7e701ce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ module.exports = {
name = 'Text'
}

return `import { ${name} } from '@telusdigital/tds';`
// DisplayHeading has name-spaced sub-components
if (path.dirname(componentPath).includes('Typography/DisplayHeading')) {
name = 'DisplayHeading'
}

// Heading has name-spaced sub-components
if (path.dirname(componentPath).includes('Typography/Heading')) {
name = 'Heading'
}

return `import { ${name} } from '@telusdigital/tds'`
},

showUsage: true,
Expand Down

0 comments on commit 7e701ce

Please sign in to comment.