mirror of
https://github.com/strapi/strapi.git
synced 2025-08-30 19:56:05 +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';
|
import styles from './styles.scss';
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
const {{ properCase name }} = () => {
|
function {{ properCase name}}() {
|
||||||
return (
|
return (
|
||||||
{{#if wantCSS}}
|
{{#if wantCSS}}
|
||||||
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
||||||
@ -29,4 +29,8 @@ const {{ properCase name }} = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{ properCase name }}.proptypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
export default {{ properCase name }};
|
export default {{ properCase name }};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user