Skip to content

Commit 167752a

Browse files
author
Simon Planinschek
committed
Add new line between the imports and the component declaration and removed return types
1 parent 1916af3 commit 167752a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function formatName(string) {
4242
*/
4343
function componentTemplate(name, svg) {
4444
let component = "import React from 'react'\n"
45-
component += "import { IconProps } from './types'\n"
46-
component += `const ${name}: React.FC<IconProps> = (props: IconProps):any => (`
45+
component += "import { IconProps } from './types'\n\n"
46+
component += `const ${name}: React.FC<IconProps> = (props) => (`
4747
component += svg + ')\n\n'
4848
component += `export { ${name} }`
4949

0 commit comments

Comments
 (0)