formatting

This commit is contained in:
Proddy
2022-12-10 11:56:28 +01:00
parent 923494fdce
commit e67fde24f1
5 changed files with 26 additions and 20 deletions

View File

@@ -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"
} }

View File

@@ -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>

View File

@@ -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>
)} )}
</> </>
); );

View File

@@ -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;
} }

View File

@@ -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();