feat(lock): update className of lock button based on interactivity state

This commit is contained in:
Sebastián Alvarez
2020-05-11 03:14:09 -03:00
parent f500d52f2f
commit 7514e2fb86

View File

@@ -34,7 +34,7 @@ export default ({ style, className }: ControlProps) => {
}}
>
<div
className="react-flow__controls-button react-flow__controls-lock"
className={`react-flow__controls-button react-flow__controls-${isInteractive? 'unlocked' : 'locked' }`}
onClick={() => setInteractive(!isInteractive)}
>
{ isInteractive ? <UnlockIcon /> : <LockIcon /> }