Skip to content

Commit efb7487

Browse files
committed
🐛 Rename function component type
1 parent 3de0075 commit efb7487

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/template/componentsTypescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface ${name}OwnProps {}
88
99
type ${name}Props = ${name}OwnProps & FelaWithStylesProps<${name}OwnProps, {}>;
1010
11-
const ${name}: FunctionComponent<${name}Props> = ({ styles }) => (
11+
const ${name}: FC<${name}Props> = ({ styles }) => (
1212
<div className={styles.container}>
1313
1414
</div>
@@ -27,7 +27,7 @@ import * as rules from './${name}.styles';
2727
2828
export interface ${name}Props {}
2929
30-
const ${name}: FunctionComponent<${name}Props> = () => {
30+
const ${name}: FC<${name}Props> = () => {
3131
const { styles } = useFelaEnhanced(rules);
3232
3333
return (

0 commit comments

Comments
 (0)