diff --git a/FRONTEND/src/components/Modal/ModalTerminal.tsx b/FRONTEND/src/components/Modal/ModalTerminal.tsx index 7626668..4eb0a2c 100644 --- a/FRONTEND/src/components/Modal/ModalTerminal.tsx +++ b/FRONTEND/src/components/Modal/ModalTerminal.tsx @@ -525,13 +525,76 @@ const ModalTerminal = ({ )} - - - BAUD: - - - {line?.baud || ""} - + + + + BAUD: + + + {line?.baud || ""} + + + + + + + + + {listBaudDefault.map((el, i) => ( + + ))} + + + @@ -874,79 +937,6 @@ const ModalTerminal = ({ - - - - - - - {listBaudDefault.map((el, i) => ( - - ))} - setValueBaud(e.target.value)} - onKeyDown={(e) => { - if (e.key === "Enter") { - socket?.emit("set_baud", { - lineId: line?.id, - baud: Number(valueBaud), - stationId: Number(stationItem?.id), - }); - setValueBaud(""); - setIsDisable(true); - setTimeout(() => { - setIsDisable(false); - }, 5000); - } - }} - /> - - -