diff --git a/interface/src/app/settings/network/Network.tsx b/interface/src/app/settings/network/Network.tsx index 9f4a60b12..c847273a4 100644 --- a/interface/src/app/settings/network/Network.tsx +++ b/interface/src/app/settings/network/Network.tsx @@ -24,10 +24,17 @@ const Network = () => { // this also works! // const routerTab = useMatch(`settings/network/:path/*`)?.pathname || false; - const matchedRoutes = matchRoutes( [ - { path: '/settings/network/settings', element: , dog: 'woof' }, - { path: '/settings/network/scan', element: } - ], useLocation()); + const matchedRoutes = matchRoutes( + [ + { + path: '/settings/network/settings', + element: , + dog: 'woof' + }, + { path: '/settings/network/scan', element: } + ], + useLocation() + ); const routerTab = matchedRoutes?.[0].route.path || false; const navigate = useNavigate(); @@ -55,7 +62,10 @@ const Network = () => { }} > - + diff --git a/interface/src/app/settings/security/Security.tsx b/interface/src/app/settings/security/Security.tsx index 0bfc6d8f4..cbbc5716b 100644 --- a/interface/src/app/settings/security/Security.tsx +++ b/interface/src/app/settings/security/Security.tsx @@ -1,10 +1,4 @@ -import { - Navigate, - Route, - Routes, - matchRoutes, - useLocation -} from 'react-router'; +import { Navigate, Route, Routes, matchRoutes, useLocation } from 'react-router'; import { Tab } from '@mui/material'; @@ -39,7 +33,10 @@ const Security = () => { } /> } /> - } /> + } + /> ); diff --git a/interface/src/app/status/Status.tsx b/interface/src/app/status/Status.tsx index 7477d07d1..e8a6447d5 100644 --- a/interface/src/app/status/Status.tsx +++ b/interface/src/app/status/Status.tsx @@ -139,7 +139,9 @@ const SystemStatus = () => { case NTPSyncStatus.NTP_INACTIVE: return LL.INACTIVE(0); case NTPSyncStatus.NTP_ACTIVE: - return LL.ACTIVE() + (data.ntp_time !== undefined) ? ' (' + formatDateTime(data.ntp_time) + ')' : ''; + return LL.ACTIVE() + (data.ntp_time !== undefined) + ? ' (' + formatDateTime(data.ntp_time) + ')' + : ''; default: return LL.UNKNOWN(); }