Fix review comments
This commit is contained in:
parent
3a1b3c0d43
commit
0c7a1500ec
6 changed files with 46 additions and 46 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue