There was an error while loading. Please reload this page.
1 parent 1916af3 commit 167752aCopy full SHA for 167752a
1 file changed
generator.js
@@ -42,8 +42,8 @@ function formatName(string) {
42
*/
43
function componentTemplate(name, svg) {
44
let component = "import React from 'react'\n"
45
- component += "import { IconProps } from './types'\n"
46
- component += `const ${name}: React.FC<IconProps> = (props: IconProps):any => (`
+ component += "import { IconProps } from './types'\n\n"
+ component += `const ${name}: React.FC<IconProps> = (props) => (`
47
component += svg + ')\n\n'
48
component += `export { ${name} }`
49
0 commit comments