From c3ca82d9cccb24bc048a7dba151c63350e3fd2d8 Mon Sep 17 00:00:00 2001 From: cyril lopez Date: Sat, 30 Sep 2017 18:15:10 +0200 Subject: [PATCH] Update stateless component generator --- .../lib/internals/generators/component/stateless.js.hbs | 2 +- packages/strapi-helper-plugin/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 2184b2ae2b..640058e587 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}} -function {{ properCase name }}() { +const {{ properCase name }} = () => { return ( {{#if wantCSS}}
diff --git a/packages/strapi-helper-plugin/package.json b/packages/strapi-helper-plugin/package.json index 9446a85d55..31f9ab71c8 100755 --- a/packages/strapi-helper-plugin/package.json +++ b/packages/strapi-helper-plugin/package.json @@ -115,4 +115,4 @@ "webpack-hot-middleware": "^2.18.2", "whatwg-fetch": "^2.0.3" } -} \ No newline at end of file +}