mirror of
https://github.com/SomboChea/ui
synced 2024-05-16 08:21:36 +07:00
fix: introduced SvgIcon (#184)
This commit is contained in:
parent
3b4d823845
commit
8b86ded434
|
@ -2,7 +2,8 @@
|
||||||
/* eslint-disable react/jsx-curly-brace-presence */
|
/* eslint-disable react/jsx-curly-brace-presence */
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
||||||
|
import SvgIcon from '../muiComponents/SvgIcon';
|
||||||
|
|
||||||
const GitHub: React.FC = props => (
|
const GitHub: React.FC = props => (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
import React, { forwardRef } from 'react';
|
||||||
|
import { default as MaterialUISvgIcon, SvgIconProps } from '@material-ui/core/SvgIcon';
|
||||||
|
|
||||||
|
type SvgIconRef = SVGSVGElement;
|
||||||
|
|
||||||
|
const SvgIcon = forwardRef<SvgIconRef, SvgIconProps>(function SvgIcon(props, ref) {
|
||||||
|
return <MaterialUISvgIcon {...props} ref={ref} />;
|
||||||
|
});
|
||||||
|
|
||||||
|
export default SvgIcon;
|
|
@ -0,0 +1 @@
|
||||||
|
export { default } from './SvgIcon';
|
Loading…
Reference in New Issue
Block a user