forked from sombochea/verdaccio-ui
fix: introduced forwardRef (#181)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
a8deeb9b9d
commit
0c4fb7da13
10
src/muiComponents/List/List.tsx
Normal file
10
src/muiComponents/List/List.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import React, { forwardRef } from 'react';
|
||||
import { default as MaterialUIList, ListProps } from '@material-ui/core/List';
|
||||
|
||||
type ListRef = HTMLUListElement;
|
||||
|
||||
const List = forwardRef<ListRef, ListProps>(function List(props, ref) {
|
||||
return <MaterialUIList {...props} ref={ref} />;
|
||||
});
|
||||
|
||||
export default List;
|
||||
1
src/muiComponents/List/index.ts
Normal file
1
src/muiComponents/List/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './List';
|
||||
Reference in New Issue
Block a user