mirror of
https://github.com/strapi/strapi.git
synced 2025-08-29 19:22:24 +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';
|
import styles from './styles.scss';
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
function {{ properCase name }}() {
|
const {{ properCase name }} = () => {
|
||||||
return (
|
return (
|
||||||
{{#if wantCSS}}
|
{{#if wantCSS}}
|
||||||
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
||||||
|
@ -115,4 +115,4 @@
|
|||||||
"webpack-hot-middleware": "^2.18.2",
|
"webpack-hot-middleware": "^2.18.2",
|
||||||
"whatwg-fetch": "^2.0.3"
|
"whatwg-fetch": "^2.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user