storybook-eol / react-cdk

under development - React Component Development Kit with Storybook
MIT License
576 stars 43 forks source link

Wrong Prop Types after publishing to Github pages #22

Closed usulpro closed 8 years ago

usulpro commented 8 years ago

I use addWithInfo to show prop types of the component

import SmTextarea from '../index';
...
.addWithInfo('Prop Types', () => {
    return ( <Something /> );
}, { propTables: [SmTextarea] })

It works well while development but after deploying to GitHub it reduced to one letter (see here "t" Component) Looks like it minified for publishing but is there any way to show real name of a component?

roonyh commented 8 years ago

You can define a displayName for your components. See kadirahq/react-storybook-addon-info/issues/26

usulpro commented 8 years ago

thank you!

roonyh commented 8 years ago

You are welcome!