Popup.Label code reformat

This commit is contained in:
NikolaBorislavovHristov 2019-01-18 14:36:43 +02:00
parent efbbee1e12
commit 59e08b2c10

View file

@ -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;