mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 05:32:09 +00:00
Popup.Label code reformat
This commit is contained in:
parent
efbbee1e12
commit
59e08b2c10
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
const Label = ({ children, ...props }, ref) => {
|
||||
const Label = React.forwardRef(({ children, ...props }, ref) => {
|
||||
return React.cloneElement(React.Children.only(children), { ...props, ref });
|
||||
};
|
||||
});
|
||||
|
||||
export default React.forwardRef(Label);
|
||||
export default Label;
|
||||
|
|
|
|||
Loading…
Reference in a new issue