diff --git a/web/src/AppBar.jsx b/web/src/AppBar.jsx
index 80bc00756..09fc2e9d8 100644
--- a/web/src/AppBar.jsx
+++ b/web/src/AppBar.jsx
@@ -10,10 +10,8 @@ import Prompt from './components/Prompt';
import { useDarkMode } from './context';
import { useCallback, useRef, useState } from 'preact/hooks';
import { useRestart } from './api/mqtt';
-import { useTranslation } from 'react-i18next';
export default function AppBar() {
- const { t } = useTranslation();
const [showMoreMenu, setShowMoreMenu] = useState(false);
const [showDialog, setShowDialog] = useState(false);
const [showDialogWait, setShowDialogWait] = useState(false);
@@ -58,29 +56,29 @@ export default function AppBar() {
{showMoreMenu ? (
) : null}
{showDialog ? (
) : null}
{showDialogWait ? (
) : null}
diff --git a/web/src/routes/Recording.jsx b/web/src/routes/Recording.jsx
index 3c8607833..a35531fe9 100644
--- a/web/src/routes/Recording.jsx
+++ b/web/src/routes/Recording.jsx
@@ -7,8 +7,10 @@ import RecordingPlaylist from '../components/RecordingPlaylist';
import VideoPlayer from '../components/VideoPlayer';
import { useApiHost } from '../api';
import useSWR from 'swr';
+import { useTranslation } from 'react-i18next';
export default function Recording({ camera, date, hour = '00', minute = '00', second = '00' }) {
+ const { t } = useTranslation();
const currentDate = useMemo(
() => (date ? parseISO(`${date}T${hour || '00'}:${minute || '00'}:${second || '00'}`) : new Date()),
[date, hour, minute, second]