From b64fa47a389ed9a8f86a9cef3a1bd5de5f1b456a Mon Sep 17 00:00:00 2001 From: zain94rif Date: Wed, 8 Apr 2026 14:35:02 +0700 Subject: [PATCH] fix(func): remove unuse function --- src/components/Global/MqttConnection.jsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/components/Global/MqttConnection.jsx b/src/components/Global/MqttConnection.jsx index c3202a8..2dbe549 100644 --- a/src/components/Global/MqttConnection.jsx +++ b/src/components/Global/MqttConnection.jsx @@ -74,19 +74,6 @@ const listenMessage = (callback) => { }); }; -const dryerIds = ['c_4018', 'c_4021', 'c_5018', 'c_5021', 'c_6018', 'c_6021']; -const DryerColor = (condition) => { - switch (condition) { - case 1: - c_4018.style.fill = 'yellow'; - c_4021.style.fill = 'rgb(216,216,216)'; - break; - default: - c_4018.style.fill = 'rgb(216,216,216)'; - c_4021.style.fill = 'yellow'; - } -}; - const colorIds = ['c_1023', 'c_2023', 'c_2023']; const StatusColor = (el, num) => { switch (num) { @@ -101,6 +88,7 @@ const StatusColor = (el, num) => { } }; +const dryerIds = ['c_4018', 'c_4021', 'c_5018', 'c_5021', 'c_6018', 'c_6021']; const handleBoolean = (svg, el, value) => { if (!dryerIds.includes(el.id)) { el.style.display = value ? '' : 'none';