From ec55c169ba6bd1d9ec5ecaa4464e3156d5502ee0 Mon Sep 17 00:00:00 2001 From: Truong Vo <41848815+vmtruong301296@users.noreply.github.com> Date: Fri, 12 Dec 2025 15:13:24 +0700 Subject: [PATCH] =?UTF-8?q?Di=20chuy=E1=BB=83n=20button=20BAUN=20trong=20c?= =?UTF-8?q?hi=20ti=E1=BA=BFt=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Modal/ModalTerminal.tsx | 150 ++++++++---------- 1 file changed, 70 insertions(+), 80 deletions(-) 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); - } - }} - /> - - -