forked from sombochea/verdaccio-ui
fix: introduced forwardRef (#185)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
af8ed8b3e3
commit
7548c89401
10
src/muiComponents/DialogContent/DialogContent.tsx
Normal file
10
src/muiComponents/DialogContent/DialogContent.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import React, { forwardRef } from 'react';
|
||||
import { default as MaterialUIDialogContent, DialogContentProps } from '@material-ui/core/DialogContent';
|
||||
|
||||
type DialogContentRef = HTMLDivElement;
|
||||
|
||||
const DialogContent = forwardRef<DialogContentRef, DialogContentProps>(function DialogContent(props, ref) {
|
||||
return <MaterialUIDialogContent {...props} ref={ref} />;
|
||||
});
|
||||
|
||||
export default DialogContent;
|
||||
1
src/muiComponents/DialogContent/index.ts
Normal file
1
src/muiComponents/DialogContent/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './DialogContent';
|
||||
Reference in New Issue
Block a user