From 7e701ced5ba3c514d03b1ec99d48a56e9ce10989 Mon Sep 17 00:00:00 2001 From: Laura Cabrera Date: Tue, 5 Sep 2017 15:57:36 -0700 Subject: [PATCH] docs(heading): Adjust import path for Heading and DisplayHeading for their sub-components --- config/styleguide.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/styleguide.config.js b/config/styleguide.config.js index f6cd3e0244..73f3009ab3 100644 --- a/config/styleguide.config.js +++ b/config/styleguide.config.js @@ -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,