From cf38bf7d43aee40a18be3c66dda2d7af4ac9f990 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Fri, 9 Sep 2016 09:12:40 +0530 Subject: [PATCH] Make the wrapStory decorator simple to use. --- example/stories/index.js | 2 +- src/KnobManager.js | 20 +++++++++----------- src/index.js | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/example/stories/index.js b/example/stories/index.js index 5b981f918f4..5dda111f416 100644 --- a/example/stories/index.js +++ b/example/stories/index.js @@ -12,7 +12,7 @@ import { import Button from './Button'; storiesOf('Button', module) - .addDecorator((story, context) => (withKnobs(story)(context))) + .addDecorator(withKnobs) .add('default view', () => (