Skip to content

Commit d967b1e

Browse files
author
Tamoor Shahid
committed
Added tooltips to preset buttons.
1 parent e413476 commit d967b1e

File tree

1 file changed

+38
-30
lines changed

1 file changed

+38
-30
lines changed

src/screens/OavMover.tsx

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Grid2,
66
Stack,
77
TextField,
8+
Tooltip,
89
useTheme,
910
} from "@mui/material";
1011
import { OavVideoStream } from "../components/OavVideoStream";
@@ -197,36 +198,43 @@ export function PresetMovements() {
197198
<b>Preset Positions</b>
198199
</p>
199200
<Grid2>
200-
<Button
201-
style={buttonStyle}
202-
onClick={() =>
203-
submitAndRunPlanImmediately("moveto_preset", {
204-
place: "collect_position",
205-
})
206-
}
207-
>
208-
Collect Position
209-
</Button>
210-
<Button
211-
style={buttonStyle}
212-
onClick={() =>
213-
submitAndRunPlanImmediately("moveto_preset", {
214-
place: "load_position",
215-
})
216-
}
217-
>
218-
Load Position
219-
</Button>
220-
<Button
221-
style={buttonStyle}
222-
onClick={() =>
223-
submitAndRunPlanImmediately("moveto_preset", {
224-
place: "microdrop_position",
225-
})
226-
}
227-
>
228-
Microdrop Align
229-
</Button>
201+
<Tooltip title={"Move into position for collection"}>
202+
<Button
203+
style={buttonStyle}
204+
onClick={() =>
205+
submitAndRunPlanImmediately("moveto_preset", {
206+
place: "collect_position",
207+
})
208+
}
209+
>
210+
Collect Position
211+
</Button>
212+
</Tooltip>
213+
214+
<Tooltip title={"Move hardware for sample loading"}>
215+
<Button
216+
style={buttonStyle}
217+
onClick={() =>
218+
submitAndRunPlanImmediately("moveto_preset", {
219+
place: "load_position",
220+
})
221+
}
222+
>
223+
Load Position
224+
</Button>
225+
</Tooltip>
226+
<Tooltip title={"Align microdrop"}>
227+
<Button
228+
style={buttonStyle}
229+
onClick={() =>
230+
submitAndRunPlanImmediately("moveto_preset", {
231+
place: "microdrop_position",
232+
})
233+
}
234+
>
235+
Microdrop Align
236+
</Button>
237+
</Tooltip>
230238
</Grid2>
231239
</Box>
232240
);

0 commit comments

Comments
 (0)