chore: address linter warnings

This commit is contained in:
Gabe Kangas
2023-08-02 13:41:08 -07:00
parent d3c5e14aa0
commit 243156b307
4 changed files with 14 additions and 12 deletions

View File

@@ -284,10 +284,11 @@ export const MainLayout: FC<MainLayoutProps> = ({ 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]);
}),
);
}, []);

View File

@@ -162,9 +162,7 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
>
<Spin spinning={loading}>
<UserColorBlock color={displayColor} />
{scopes?.map(scope => (
<Tag key={scope}>{scope}</Tag>
))}
{scopes?.map(scope => <Tag key={scope}>{scope}</Tag>)}
{authenticated && <Tag>Authenticated</Tag>}
{isBot && <Tag>Bot</Tag>}
<ValueRow label="Messages Sent Across Clients" value={totalMessagesSent.toString()} />