chore: reduce code for icons

This commit is contained in:
DarkSky
2022-08-12 01:42:17 +08:00
parent 40b617c429
commit d3b4906da9
135 changed files with 268 additions and 668 deletions
@@ -1,15 +1,12 @@
import { FC } from 'react';
// eslint-disable-next-line no-restricted-imports
import { SvgIcon } from '@mui/material';
// eslint-disable-next-line no-restricted-imports
import type { SvgIconProps } from '@mui/material';
import { SvgIcon, SvgIconProps } from '@mui/material';
export interface SolidLineIconProps extends Omit<SvgIconProps, 'color'> {
color?: string
}
export const SolidLineIcon: FC<SolidLineIconProps> = ({ color, style, ...props}) => {
export const SolidLineIcon = ({ color, style, ...props}: SolidLineIconProps) => {
const propsStyles = {"color": color};
const customStyles = {};
const styles = {...propsStyles, ...customStyles, ...style}