Fix style issues

This commit is contained in:
Anton Tananaev 2024-08-30 07:08:28 -07:00
parent 0b64296c0b
commit 58be5a5c33
2 changed files with 2 additions and 4 deletions

View File

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

View File

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