mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-13 21:54:07 +00:00
formatting
This commit is contained in:
@@ -13,11 +13,7 @@ import VisibilityOutlinedIcon from '@mui/icons-material/VisibilityOutlined';
|
|||||||
import type { SvgIconProps } from '@mui/material';
|
import type { SvgIconProps } from '@mui/material';
|
||||||
|
|
||||||
export type OptionType =
|
export type OptionType =
|
||||||
| 'deleted'
|
'deleted' | 'readonly' | 'web_exclude' | 'api_mqtt_exclude' | 'favorite';
|
||||||
| 'readonly'
|
|
||||||
| 'web_exclude'
|
|
||||||
| 'api_mqtt_exclude'
|
|
||||||
| 'favorite';
|
|
||||||
|
|
||||||
type IconPair = [
|
type IconPair = [
|
||||||
React.ComponentType<SvgIconProps>,
|
React.ComponentType<SvgIconProps>,
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import {
|
|||||||
Box,
|
Box,
|
||||||
Button,
|
Button,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Grid,
|
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogActions,
|
DialogActions,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
|
Grid,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
TextField,
|
TextField,
|
||||||
Typography
|
Typography
|
||||||
@@ -40,7 +40,12 @@ import { formatLocalDateTime, updateValueDirty, useRest } from 'utils';
|
|||||||
import { ValidationError, validate } from 'validators';
|
import { ValidationError, validate } from 'validators';
|
||||||
import { NTP_SETTINGS_VALIDATOR } from 'validators/ntp';
|
import { NTP_SETTINGS_VALIDATOR } from 'validators/ntp';
|
||||||
|
|
||||||
import { TIME_ZONES, selectedTimeZone, useTimeZoneSelectItems, timeZoneSelectItemsT } from './TZ';
|
import {
|
||||||
|
TIME_ZONES,
|
||||||
|
selectedTimeZone,
|
||||||
|
timeZoneSelectItemsT,
|
||||||
|
useTimeZoneSelectItems
|
||||||
|
} from './TZ';
|
||||||
|
|
||||||
const NTPSettings = () => {
|
const NTPSettings = () => {
|
||||||
const {
|
const {
|
||||||
@@ -225,9 +230,11 @@ const NTPSettings = () => {
|
|||||||
select
|
select
|
||||||
>
|
>
|
||||||
<MenuItem value={0}>{LL.OFF()}</MenuItem>
|
<MenuItem value={0}>{LL.OFF()}</MenuItem>
|
||||||
<MenuItem value={1}>{LL.ON()}</MenuItem >
|
<MenuItem value={1}>{LL.ON()}</MenuItem>
|
||||||
<MenuItem value={2} >{LL.USE()} {LL.TIME_ZONE()}</MenuItem >
|
<MenuItem value={2}>
|
||||||
</ValidatedTextField >
|
{LL.USE()} {LL.TIME_ZONE()}
|
||||||
|
</MenuItem>
|
||||||
|
</ValidatedTextField>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid>
|
<Grid>
|
||||||
{data.thermostat_sync === 2 && (
|
{data.thermostat_sync === 2 && (
|
||||||
|
|||||||
Reference in New Issue
Block a user