mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-07 10:29:37 +00:00
forward all props to Popup.Label children
This commit is contained in:
parent
90bb088be4
commit
89da7f635b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
const Label = React.forwardRef(({ children, onClick }, ref) => {
|
||||
return React.cloneElement(React.Children.only(children), { ref, onClick });
|
||||
const Label = React.forwardRef(({ children, ...props }, ref) => {
|
||||
return React.cloneElement(React.Children.only(children), { ref, ...props });
|
||||
});
|
||||
|
||||
export default Label;
|
||||
|
|
|
|||
Loading…
Reference in a new issue