diff --git a/web/components/admin/MainLayout.tsx b/web/components/admin/MainLayout.tsx index 1efe5e3b3..05d4d2030 100644 --- a/web/components/admin/MainLayout.tsx +++ b/web/components/admin/MainLayout.tsx @@ -284,10 +284,11 @@ export const MainLayout: FC = ({ children }) => { }; useEffect(() => { - menuItems.forEach(item => - item?.children?.forEach(child => { - if (child?.key === route) setOpenKeys([...openMenuItems, item.key]); - }), + menuItems.forEach( + item => + item?.children?.forEach(child => { + if (child?.key === route) setOpenKeys([...openMenuItems, item.key]); + }), ); }, []); diff --git a/web/components/chat/ChatModerationDetailsModal/ChatModerationDetailsModal.tsx b/web/components/chat/ChatModerationDetailsModal/ChatModerationDetailsModal.tsx index 526f6560f..5bde45f73 100644 --- a/web/components/chat/ChatModerationDetailsModal/ChatModerationDetailsModal.tsx +++ b/web/components/chat/ChatModerationDetailsModal/ChatModerationDetailsModal.tsx @@ -162,9 +162,7 @@ export const ChatModerationDetailsModal: FC = ( > - {scopes?.map(scope => ( - {scope} - ))} + {scopes?.map(scope => {scope})} {authenticated && Authenticated} {isBot && Bot} diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index 456ecd17b..c04398370 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/no-danger */ -import { Html, Head, Main, NextScript } from 'next/document'; import { readFileSync } from 'fs'; import { join } from 'path'; +import { Html, Head, Main, NextScript } from 'next/document'; class InlineStylesHead extends Head { getCssLinks: Head['getCssLinks'] = ({ allFiles }) => { diff --git a/web/pages/embed/video/index.tsx b/web/pages/embed/video/index.tsx index 8a91ad413..89084e38e 100644 --- a/web/pages/embed/video/index.tsx +++ b/web/pages/embed/video/index.tsx @@ -39,10 +39,13 @@ export default function VideoEmbed() { * query parameters ourselves */ const path = router.asPath.split('?')[1] ?? ''; - const query = path.split('&').reduce((currQuery, part) => { - const [key, value] = part.split('='); - return { ...currQuery, [key]: value }; - }, {} as Record); + const query = path.split('&').reduce( + (currQuery, part) => { + const [key, value] = part.split('='); + return { ...currQuery, [key]: value }; + }, + {} as Record, + ); const initiallyMuted = query.initiallyMuted === 'true';