mirror of
https://github.com/SomboChea/ui
synced 2026-01-17 16:45:49 +07:00
fix: introduced SvgIcon (#184)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
3b4d823845
commit
8b86ded434
10
src/muiComponents/SvgIcon/SvgIcon.tsx
Normal file
10
src/muiComponents/SvgIcon/SvgIcon.tsx
Normal file
@@ -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;
|
||||
1
src/muiComponents/SvgIcon/index.ts
Normal file
1
src/muiComponents/SvgIcon/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './SvgIcon';
|
||||
Reference in New Issue
Block a user