mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"adapter": "react",
|
"adapter": "react",
|
||||||
"baseLocale": "pl",
|
"baseLocale": "pl",
|
||||||
"$schema": "https://unpkg.com/typesafe-i18n@5.17.1/schema/typesafe-i18n.json"
|
"$schema": "https://unpkg.com/typesafe-i18n@5.17.1/schema/typesafe-i18n.json"
|
||||||
}
|
}
|
||||||
@@ -223,7 +223,13 @@ const MqttSettingsForm: FC = () => {
|
|||||||
<>
|
<>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={<Checkbox name="multiple_instances" checked={data.multiple_instances} onChange={updateFormValue} />}
|
control={
|
||||||
|
<Checkbox
|
||||||
|
name="multiple_instances"
|
||||||
|
checked={data.multiple_instances}
|
||||||
|
onChange={updateFormValue}
|
||||||
|
/>
|
||||||
|
}
|
||||||
label={LL.MQTT_MULTIPLE_INSTANCES()}
|
label={LL.MQTT_MULTIPLE_INSTANCES()}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -288,18 +288,18 @@ const WiFiSettingsForm: FC = () => {
|
|||||||
</MessageBox>
|
</MessageBox>
|
||||||
)}
|
)}
|
||||||
{!restartNeeded && (
|
{!restartNeeded && (
|
||||||
<ButtonRow>
|
<ButtonRow>
|
||||||
<Button
|
<Button
|
||||||
startIcon={<SaveIcon />}
|
startIcon={<SaveIcon />}
|
||||||
disabled={saving}
|
disabled={saving}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="primary"
|
color="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
onClick={validateAndSubmit}
|
onClick={validateAndSubmit}
|
||||||
>
|
>
|
||||||
{LL.SAVE()}
|
{LL.SAVE()}
|
||||||
</Button>
|
</Button>
|
||||||
</ButtonRow>
|
</ButtonRow>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -37,9 +37,9 @@ const DeviceIcon: FC<DeviceIconProps> = ({ type }) => {
|
|||||||
case 'Gateway':
|
case 'Gateway':
|
||||||
return <AiOutlineGateway />;
|
return <AiOutlineGateway />;
|
||||||
case 'Alert':
|
case 'Alert':
|
||||||
return <AiOutlineAlert />;
|
return <AiOutlineAlert />;
|
||||||
case 'Pump':
|
case 'Pump':
|
||||||
return <AiOutlineChrome />;
|
return <AiOutlineChrome />;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class DallasSensor {
|
|||||||
|
|
||||||
std::string name() const;
|
std::string name() const;
|
||||||
void set_name(const std::string & name) {
|
void set_name(const std::string & name) {
|
||||||
name_ = name;
|
name_ = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool apply_customization();
|
bool apply_customization();
|
||||||
|
|||||||
Reference in New Issue
Block a user