mirror of
https://github.com/strapi/strapi.git
synced 2025-08-30 11:45:48 +00:00
Change stateless component generator to follow Airbnb recos
This commit is contained in:
parent
5abb9c5fac
commit
2cc28a1cb2
@ -15,7 +15,7 @@ import messages from './messages';
|
||||
import styles from './styles.scss';
|
||||
{{/if}}
|
||||
|
||||
const {{ properCase name }} = () => {
|
||||
function {{ properCase name}}() {
|
||||
return (
|
||||
{{#if wantCSS}}
|
||||
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
||||
@ -29,4 +29,8 @@ const {{ properCase name }} = () => {
|
||||
);
|
||||
}
|
||||
|
||||
{{ properCase name }}.proptypes = {
|
||||
|
||||
};
|
||||
|
||||
export default {{ properCase name }};
|
||||
|
Loading…
x
Reference in New Issue
Block a user