chore: remove residual FC and FunctionComponent from components

This commit is contained in:
Bryan Lee
2022-08-12 10:56:22 +08:00
parent d3b4906da9
commit 495d9ccc0c
88 changed files with 99 additions and 123 deletions
+1 -2
View File
@@ -84,9 +84,8 @@ async function getJSXContent(name, svgCode) {
}
let matcher = svgrContent.match(/<svg ([^\>]+)>([\s\S]*?)<\/svg>/);
return `
import { FC } from 'react';
import { SvgIcon, SvgIconProps } from '@mui/material';
export const ${name}Icon: FC<SvgIconProps> = (props) => (
export const ${name}Icon = (props: SvgIconProps) => (
<SvgIcon ${matcher[1]}>
${matcher[2]}
</SvgIcon>