Move checkbox text before input

This commit is contained in:
2025-06-06 13:12:21 +01:00
parent 3d7d1609f3
commit ecdac3fc9a
6 changed files with 37 additions and 26 deletions

View File

@@ -112,13 +112,13 @@ const Connectivity = () => {
{mqttMsg && <div className="message">{mqttMsg}</div>}
<form className="form" onSubmit={e => { e.preventDefault(); saveMqtt(); }}>
<div className="form-group">
<label>
<label className="checkbox-label">
Ativar MQTT
<input
type="checkbox"
checked={mqttConfig.enabled}
onChange={e => setMqttConfig({ ...mqttConfig, enabled: e.target.checked })}
/>
Ativar MQTT
</label>
</div>