mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 22:18:54 +08:00
chore: remove residual FC and FunctionComponent from components
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user