disables hover on read only DraggableSections

This commit is contained in:
James
2020-12-27 13:06:34 -05:00
parent 238232cf51
commit b6d2c95ee7

View File

@@ -40,7 +40,7 @@ const DraggableSection: React.FC<Props> = (props) => {
const classes = [
baseClass,
isOpen ? 'is-open' : 'is-closed',
isHovered && 'is-hovered',
(isHovered && !readOnly) && 'is-hovered',
].filter(Boolean).join(' ');
return (