From d32c54920a3cd495c860172782401c7ea4e6fe4a Mon Sep 17 00:00:00 2001 From: ismail Date: Thu, 12 Oct 2023 14:38:34 -0400 Subject: [PATCH] eslint formatting --- src/features/settings/blocks/BlockedCommunities.tsx | 4 +++- src/features/settings/blocks/BlockedUsers.tsx | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/features/settings/blocks/BlockedCommunities.tsx b/src/features/settings/blocks/BlockedCommunities.tsx index 1d60282598..2586697f29 100644 --- a/src/features/settings/blocks/BlockedCommunities.tsx +++ b/src/features/settings/blocks/BlockedCommunities.tsx @@ -23,7 +23,9 @@ export default function BlockedCommunities() { ); const sortedCommunities = communities && communities.length > 0 - ? [...(communities || [])].sort((a, b) => a.community.name.localeCompare(b.community.name)) + ? [...(communities || [])].sort((a, b) => + a.community.name.localeCompare(b.community.name) + ) : communities || []; async function remove(community: CommunityBlockView) { diff --git a/src/features/settings/blocks/BlockedUsers.tsx b/src/features/settings/blocks/BlockedUsers.tsx index 23f8cd3cdd..2291cf024c 100644 --- a/src/features/settings/blocks/BlockedUsers.tsx +++ b/src/features/settings/blocks/BlockedUsers.tsx @@ -14,7 +14,6 @@ import { PersonBlockView } from "lemmy-js-client"; import { blockUser } from "../../user/userSlice"; import { ListHeader } from "../shared/formatting"; - export default function BlockedUsers() { const dispatch = useAppDispatch(); const [loading, setLoading] = useState(false); @@ -25,7 +24,7 @@ export default function BlockedUsers() { const sortedUsers = users && users.length > 0 ? [...users].sort((a, b) => - (a.target?.name || '').localeCompare(b.target?.name || '') + (a.target?.name || "").localeCompare(b.target?.name || "") ) : []; @@ -41,7 +40,7 @@ export default function BlockedUsers() { return ( <> - + Blocked Users