Skip to content

Commit

Permalink
feat(link): untoggle display of Link Components for staging and produ…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
lzcabrera committed Aug 22, 2017
1 parent dd7baae commit f6bfe08
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const toggle = (newComponentPath, oldComponentPath) => (
process.env.NODE_ENV === 'production' ? oldComponentPath : newComponentPath
)

const compact = array => array.filter(element => element !== undefined)
const compact = array => ( // eslint-disable-line no-unused-vars
array.filter(element => element !== undefined)
)


module.exports = {
Expand Down Expand Up @@ -135,11 +137,11 @@ module.exports = {
{
name: 'Links',
components() {
return compact([
toggle(path.resolve('src/components/Link/Link.jsx')),
toggle(path.resolve('src/components/Link/ChevronLink/ChevronLink.jsx')),
toggle(path.resolve('src/components/Link/ButtonLink/ButtonLink.jsx'))
])
return [
path.resolve('src/components/Link/Link.jsx'),
path.resolve('src/components/Link/ChevronLink/ChevronLink.jsx'),
path.resolve('src/components/Link/ButtonLink/ButtonLink.jsx')
]
}
},
{
Expand Down

0 comments on commit f6bfe08

Please sign in to comment.