Skip to content

Commit

Permalink
fix(app): fix gripper calibration overflowmenu visible issue (#13551)
Browse files Browse the repository at this point in the history
fix gripper calibration overflowmenu visible issue

close RQA-1581
  • Loading branch information
koji authored Sep 14, 2023
1 parent 002c1e6 commit 552cd65
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export function RobotSettingsGripperCalibration(
const [showWizardFlow, setShowWizardFlow] = React.useState<boolean>(false)
const gripperCalibrationLastModified =
gripper?.data.calibratedOffset?.last_modified

const handleCalibrate = (): void => {
setShowOverflowMenu(false)
setShowWizardFlow(true)
}

return (
<Flex
flexDirection={DIRECTION_COLUMN}
Expand Down Expand Up @@ -136,7 +142,7 @@ export function RobotSettingsGripperCalibration(
right={0}
flexDirection={DIRECTION_COLUMN}
>
<MenuItem onClick={() => setShowWizardFlow(true)}>
<MenuItem onClick={handleCalibrate}>
{t(
gripperCalibrationLastModified == null
? 'calibrate_gripper'
Expand Down

0 comments on commit 552cd65

Please sign in to comment.