diff --git a/package.json b/package.json index 38311dc..e818235 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,6 @@ "author": "", "license": "", "devDependencies": { - "@kadira/storybook": "^2.21.0", "autoprefixer": "^6.5.3", "babel-eslint": "^7.1.1", "babel-plugin-lodash": "^3.2.10", @@ -133,6 +132,7 @@ "webpack-node-externals": "^1.5.4" }, "dependencies": { + "@kadira/storybook": "^2.21.0", "asynch": "^0.5.2", "babel": "^6.5.2", "babel-cli": "^6.18.0", diff --git a/src/client/components/NotificationList/NotificationList.js b/src/client/components/NotificationList/NotificationList.js index a9575f7..2eed05c 100644 --- a/src/client/components/NotificationList/NotificationList.js +++ b/src/client/components/NotificationList/NotificationList.js @@ -1,7 +1,7 @@ import React from 'react' import { List, ListItem } from 'material-ui/List' import Divider from 'material-ui/Divider' -import { Link } from 'react-router' +import Link from 'components/Link' import { darkBlack, grey400 } from 'material-ui/styles/colors' import ActionInfo from 'material-ui/svg-icons/action/info' import Update from 'material-ui/svg-icons/action/system-update-alt' @@ -51,9 +51,8 @@ function NotificationList() { paddingLeft: '10px', }} to="project/undefined/pullrequest/UHVsbFJlcXVlc3Q6Mw==" - > - Fixes for builds count controller, added new charts, fixed minor issues - + label="Fixes for builds count controller, added new charts, fixed minor issues" + /> - [5.4] Fix particle random number regression - + label="[5.4] Fix particle random number regression" + /> - Option to use low resolution for Game View aspect ratios V4 - + label="Option to use low resolution for Game View aspect ratios V4" + /> - Trunk merge of the scriptable renderloop branch - + label="Trunk merge of the scriptable renderloop branch" + /> - Option to use low resolution for Game View aspect ratios - + link="Option to use low resolution for Game View aspect ratios" + /> - Move render target switching out from jobs - + label="Move render target switching out from jobs" + /> this.handleClick(e)} + > + {children} + + ) + } +} diff --git a/storybook/webpack.config.js b/storybook/webpack.config.js index 2a2f162..1eea46c 100644 --- a/storybook/webpack.config.js +++ b/storybook/webpack.config.js @@ -23,4 +23,12 @@ module.exports = { }, ], }, + resolve: { + alias: { + // this is used by the custom `react-router.js` module + 'react-router-original': require.resolve('react-router'), + // this `react-router.js` will replace the Link with a our own mock component + 'react-router': require.resolve('./react-router.js'), + }, + }, }