feat: Conditionally render resize button in ActionsList based on multipleAction prop
This commit is contained in:
parent
2da211f464
commit
94cdfa3a6c
|
@ -184,13 +184,15 @@ const ActionsList: React.FC<ActionsListProps> = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<button
|
{multipleAction && (
|
||||||
className="resize-icon"
|
<button
|
||||||
id="action-resize"
|
className="resize-icon"
|
||||||
onMouseDown={(e: any) => handleResize(e, actionsContainerRef)}
|
id="action-resize"
|
||||||
>
|
onMouseDown={(e: any) => handleResize(e, actionsContainerRef)}
|
||||||
<ResizeHeightIcon />
|
>
|
||||||
</button>
|
<ResizeHeightIcon />
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -32,7 +32,7 @@ function RoboticArmMechanics() {
|
||||||
selectedEventData.data.modelUuid,
|
selectedEventData.data.modelUuid,
|
||||||
selectedEventData.selectedPoint
|
selectedEventData.selectedPoint
|
||||||
) as RoboticArmPointSchema | undefined;
|
) as RoboticArmPointSchema | undefined;
|
||||||
if (point) {
|
if (point?.actions) {
|
||||||
setSelectedPointData(point);
|
setSelectedPointData(point);
|
||||||
setActiveOption(
|
setActiveOption(
|
||||||
point.actions[0].actionType as "default" | "pickAndPlace"
|
point.actions[0].actionType as "default" | "pickAndPlace"
|
||||||
|
|
Loading…
Reference in New Issue