mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-08 12:07:27 +08:00
Fix style issues
This commit is contained in:
parent
0b64296c0b
commit
58be5a5c33
@ -1,5 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
Accordion,
|
||||
AccordionSummary,
|
||||
@ -135,7 +134,7 @@ const DevicePage = () => {
|
||||
value={item.expirationTime ? item.expirationTime.split('T')[0] : '2099-01-01'}
|
||||
onChange={(e) => {
|
||||
if (e.target.value) {
|
||||
setItem({ ...item, expirationTime: new Date(e.target.value).toISOString() })
|
||||
setItem({ ...item, expirationTime: new Date(e.target.value).toISOString() });
|
||||
}
|
||||
}}
|
||||
disabled={!admin}
|
||||
|
@ -23,7 +23,6 @@ import DeleteForeverIcon from '@mui/icons-material/DeleteForever';
|
||||
import CachedIcon from '@mui/icons-material/Cached';
|
||||
import CloseIcon from '@mui/icons-material/Close';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import dayjs from 'dayjs';
|
||||
import EditItemView from './components/EditItemView';
|
||||
import EditAttributesAccordion from './components/EditAttributesAccordion';
|
||||
import { useTranslation } from '../common/components/LocalizationProvider';
|
||||
@ -327,7 +326,7 @@ const UserPage = () => {
|
||||
value={item.expirationTime ? item.expirationTime.split('T')[0] : '2099-01-01'}
|
||||
onChange={(e) => {
|
||||
if (e.target.value) {
|
||||
setItem({ ...item, expirationTime: new Date(e.target.value).toISOString() })
|
||||
setItem({ ...item, expirationTime: new Date(e.target.value).toISOString() });
|
||||
}
|
||||
}}
|
||||
disabled={!manager}
|
||||
|
Loading…
Reference in New Issue
Block a user