diff --git a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs index 640058e587..931b2a7612 100755 --- a/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs +++ b/packages/strapi-helper-plugin/lib/internals/generators/component/stateless.js.hbs @@ -15,7 +15,7 @@ import messages from './messages'; import styles from './styles.scss'; {{/if}} -const {{ properCase name }} = () => { +function {{ properCase name}}() { return ( {{#if wantCSS}}
@@ -29,4 +29,8 @@ const {{ properCase name }} = () => { ); } +{{ properCase name }}.proptypes = { + +}; + export default {{ properCase name }};