Skip to content

Commit

Permalink
Cleaning up deps and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Jun 14, 2017
1 parent 514f4b7 commit 5a6472d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions addons/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
"dependencies": {
"@storybook/addons": "^3.1.2",
"babel-runtime": "^6.23.0",
"prop-types": "^15.5.10",
"react": "^15.5.4",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"prop-types": "^15.5.10",
"react": "^15.5.4"
},
"peerDependencies": {
"react": "*"
},
"optionalDependencies": {
"@types/react": "^15.0.24"
}
}
2 changes: 1 addition & 1 deletion addons/notes/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { WithNotes as ReactWithNotes } from './react';

export const withNotes = ({ notes }) => {
const channel = addons.getChannel();
// send the notes to the channel.

return getStory => () => {
// send the notes to the channel before the story is rendered
channel.emit('storybook/notes/add_notes', notes);
return getStory();
};
Expand Down

0 comments on commit 5a6472d

Please sign in to comment.