mirror of
https://github.com/strapi/strapi.git
synced 2025-08-29 11:15:55 +00:00
Update stateless component generator
This commit is contained in:
parent
224ac30bb4
commit
c3ca82d9cc
@ -15,7 +15,7 @@ import messages from './messages';
|
||||
import styles from './styles.scss';
|
||||
{{/if}}
|
||||
|
||||
function {{ properCase name }}() {
|
||||
const {{ properCase name }} = () => {
|
||||
return (
|
||||
{{#if wantCSS}}
|
||||
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
||||
|
@ -115,4 +115,4 @@
|
||||
"webpack-hot-middleware": "^2.18.2",
|
||||
"whatwg-fetch": "^2.0.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user