diff --git a/fkie_mas_gui/src/renderer/components/LaunchFileModal/LaunchFileModal.jsx b/fkie_mas_gui/src/renderer/components/LaunchFileModal/LaunchFileModal.jsx index d5856f14..c3ac9d4f 100644 --- a/fkie_mas_gui/src/renderer/components/LaunchFileModal/LaunchFileModal.jsx +++ b/fkie_mas_gui/src/renderer/components/LaunchFileModal/LaunchFileModal.jsx @@ -15,7 +15,7 @@ import { Typography, } from "@mui/material"; import PropTypes from "prop-types"; -import { useCallback, useContext, useEffect, useState } from "react"; +import { useCallback, useContext, useEffect, useRef, useState } from "react"; import { LoggingContext } from "../../context/LoggingContext"; import { RosContext } from "../../context/RosContext"; import useLocalStorage from "../../hooks/useLocalStorage"; diff --git a/fkie_mas_gui/src/renderer/components/SelectionModal/ConfirmModal.jsx b/fkie_mas_gui/src/renderer/components/SelectionModal/ConfirmModal.jsx index 22491f6f..bc2383ec 100644 --- a/fkie_mas_gui/src/renderer/components/SelectionModal/ConfirmModal.jsx +++ b/fkie_mas_gui/src/renderer/components/SelectionModal/ConfirmModal.jsx @@ -1,6 +1,6 @@ import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from "@mui/material"; import PropTypes from "prop-types"; -import { useState } from "react"; +import { useRef, useState } from "react"; import DraggablePaper from "../UI/DraggablePaper"; function ConfirmModal({ title, message, onConfirmCallback, onCancelCallback }) { diff --git a/fkie_mas_gui/src/renderer/components/SelectionModal/ListSelectionModal.jsx b/fkie_mas_gui/src/renderer/components/SelectionModal/ListSelectionModal.jsx index ca516a53..21269051 100644 --- a/fkie_mas_gui/src/renderer/components/SelectionModal/ListSelectionModal.jsx +++ b/fkie_mas_gui/src/renderer/components/SelectionModal/ListSelectionModal.jsx @@ -12,7 +12,7 @@ import { ListItemText, } from "@mui/material"; import PropTypes from "prop-types"; -import { useState } from "react"; +import { useRef, useState } from "react"; import DraggablePaper from "../UI/DraggablePaper"; function ListSelectionModal({ list, setList, onConfirmCallback }) { diff --git a/fkie_mas_gui/src/renderer/components/SelectionModal/MapSelectionModal.jsx b/fkie_mas_gui/src/renderer/components/SelectionModal/MapSelectionModal.jsx index 727242c3..a201aa30 100644 --- a/fkie_mas_gui/src/renderer/components/SelectionModal/MapSelectionModal.jsx +++ b/fkie_mas_gui/src/renderer/components/SelectionModal/MapSelectionModal.jsx @@ -16,7 +16,7 @@ import { RadioGroup, } from "@mui/material"; import PropTypes from "prop-types"; -import { useState } from "react"; +import { useRef, useState } from "react"; import DraggablePaper from "../UI/DraggablePaper"; function MapSelectionModal({ list, onConfirmCallback, onCancelCallback = null, useRadioGroup = false }) {