feat(lock): Lock/unlock button at bottom
This commit is contained in:
@@ -33,12 +33,6 @@ export default ({ style, className }: ControlProps) => {
|
|||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
className={`react-flow__controls-button react-flow__controls-${isInteractive? 'unlocked' : 'locked' }`}
|
|
||||||
onClick={() => setInteractive(!isInteractive)}
|
|
||||||
>
|
|
||||||
{ isInteractive ? <UnlockIcon /> : <LockIcon /> }
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
className="react-flow__controls-button react-flow__controls-zoomin"
|
className="react-flow__controls-button react-flow__controls-zoomin"
|
||||||
onClick={zoomIn}
|
onClick={zoomIn}
|
||||||
@@ -57,6 +51,12 @@ export default ({ style, className }: ControlProps) => {
|
|||||||
>
|
>
|
||||||
<FitviewIcon />
|
<FitviewIcon />
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
className={`react-flow__controls-button react-flow__controls-${isInteractive? 'unlocked' : 'locked' }`}
|
||||||
|
onClick={() => setInteractive(!isInteractive)}
|
||||||
|
>
|
||||||
|
{ isInteractive ? <UnlockIcon /> : <LockIcon /> }
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user