MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / showSnackbar

Method showSnackbar

src/LAMAPFVisualizer.jsx:332–337  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

330 }
331
332 showSnackbar(color) {
333 if (!this.state.isError) this.addAgent(color);
334 this.setState({ snackbarOpen: true });
335 setTimeout(() => this.setState({ isError: false }), 1200);
336 this.emptyForm();
337 }
338
339 handleCloseSnackbar(event, reason) {
340 if (reason === "clickaway") {

Callers 1

addAgentToMapMethod · 0.95

Calls 2

addAgentMethod · 0.95
emptyFormMethod · 0.95

Tested by

no test coverage detected