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';