Fix review comments

This commit is contained in:
Karel Hala 2021-06-10 16:48:52 +02:00 committed by Sanne Raymaekers
parent 3a1b3c0d43
commit 0c7a1500ec
6 changed files with 46 additions and 46 deletions

View file

@ -4,12 +4,9 @@ import PropTypes from 'prop-types';
const RadioWithPopover = ({ Popover, ...props }) => {
const ref = useRef();
return <>
<Radio { ...props } label={ <span ref={ ref } className="ins-c-image--builder__popover">{props.label}
<Popover appendTo={ ref.current } />
</span> } />
</>;
return <Radio { ...props } label={ <span ref={ ref } className="ins-c-image--builder__popover">{props.label}
<Popover appendTo={ ref?.current } />
</span> } />;
};
RadioWithPopover.propTypes = {