diff --git a/src/components/PropField.js b/src/components/PropField.js index c1289780c429..ffd29db44596 100644 --- a/src/components/PropField.js +++ b/src/components/PropField.js @@ -33,8 +33,8 @@ const stylesheet = { }, object: { border: '1px solid #ececec', - padding: '5px' - } + padding: '5px', + }, }; stylesheet.textarea = { diff --git a/src/index.js b/src/index.js index a93db3bf923f..08f83f43a133 100644 --- a/src/index.js +++ b/src/index.js @@ -20,7 +20,7 @@ function register() { let knobStore = {}; const stories = {}; -function createKnob(name, value, type) { +function knob(name, type, value) { if (knobStore[name]) { return knobStore[name].value; } @@ -48,4 +48,4 @@ function withKnobs(storyFn) { }; } -export { register, createKnob, withKnobs }; +export { register, knob, withKnobs }; diff --git a/src/stories/index.js b/src/stories/index.js index 842f877ba18b..3d6958427323 100644 --- a/src/stories/index.js +++ b/src/stories/index.js @@ -1,7 +1,7 @@ import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { action } from '@kadira/storybook-addon-actions'; -import { createKnob, withKnobs } from '../index'; +import { knob, withKnobs } from '../index'; import Button from './Button'; storiesOf('Button', module) @@ -9,27 +9,19 @@ storiesOf('Button', module) .add('default view', () => ( - )) - .add('another view', () => ( - )) .add('default view with different knobs', () => ( )) .add('Story without any knobs', () => (