Skip to content

Commit

Permalink
docs(notification): Untoggle the new notification component for highe…
Browse files Browse the repository at this point in the history
…r environments
  • Loading branch information
ryanoglesby08 committed Aug 22, 2017
1 parent c1b5e9d commit 5a7d0fd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')

const version = require('../package.json').version

const toggle = (newComponentPath, oldComponentPath) => (
const toggle = (newComponentPath, oldComponentPath) => ( // eslint-disable-line no-unused-vars
process.env.NODE_ENV === 'production' ? oldComponentPath : newComponentPath
)

Expand Down Expand Up @@ -158,10 +158,7 @@ module.exports = {
name: 'Feedback Indicators',
components() {
return [
toggle(
path.resolve('src/components/Notification/Notification.jsx'),
path.resolve('src/old-components/Notification/Notification.jsx')
),
path.resolve('src/components/Notification/Notification.jsx'),
path.resolve('src/old-components/Spinner/Spinner.jsx'),
path.resolve('src/old-components/StepTracker/Steps/Steps.jsx')
]
Expand Down

0 comments on commit 5a7d0fd

Please sign in to comment.