Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Aug 30, 2024
1 parent 0b64296 commit 58be5a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/settings/DevicePage.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
import dayjs from 'dayjs';
import {
Accordion,
AccordionSummary,
Expand Down Expand Up @@ -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}
Expand Down
3 changes: 1 addition & 2 deletions src/settings/UserPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 58be5a5

Please sign in to comment.