mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 00:40:25 +00:00
Popup.Label used named function for forwardRef
This commit is contained in:
parent
47e4d7963c
commit
6ad9f72a38
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
const Label = React.forwardRef(({ children, ...props }, ref) => {
|
||||
const Label = ({ children, ...props }, ref) => {
|
||||
return React.cloneElement(React.Children.only(children), { ref, ...props });
|
||||
});
|
||||
};
|
||||
|
||||
export default Label;
|
||||
export default React.forwardRef(Label);
|
||||
|
|
|
|||
Loading…
Reference in a new issue