mirror of
https://github.com/SomboChea/ui
synced 2024-05-20 18:31:37 +07:00
ae73772a37
* refactor: added eslint-plugin-import * refactor: disable some rules for muiComponents * fix: fixed import
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
import React, { forwardRef } from 'react';
|
|
import { default as MaterialUIButton, ButtonProps } from '@material-ui/core/Button';
|
|
|
|
type ButtonRef = HTMLElementTagNameMap['button'];
|
|
|
|
const Button = forwardRef<ButtonRef, ButtonProps>(function Button(props, ref) {
|
|
return <MaterialUIButton {...props} ref={ref} />;
|
|
});
|
|
|
|
export default Button;
|