Skip to content

Commit

Permalink
eslint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailbazookka committed Oct 12, 2023
1 parent a6cb2df commit d32c549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/features/settings/blocks/BlockedCommunities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export default function BlockedCommunities() {
);

const sortedCommunities = communities && communities.length > 0

Check failure on line 25 in src/features/settings/blocks/BlockedCommunities.tsx

View workflow job for this annotation

GitHub Actions / ci

Insert `⏎···`
? [...(communities || [])].sort((a, b) => a.community.name.localeCompare(b.community.name))
? [...(communities || [])].sort((a, b) =>

Check failure on line 26 in src/features/settings/blocks/BlockedCommunities.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `····` with `······`
a.community.name.localeCompare(b.community.name)

Check failure on line 27 in src/features/settings/blocks/BlockedCommunities.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `······a.community.name.localeCompare(b.community.name)` with `··········a.community.name.localeCompare(b.community.name),`
)

Check failure on line 28 in src/features/settings/blocks/BlockedCommunities.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `····` with `········`
: communities || [];

Check failure on line 29 in src/features/settings/blocks/BlockedCommunities.tsx

View workflow job for this annotation

GitHub Actions / ci

Insert `··`

async function remove(community: CommunityBlockView) {
Expand Down
5 changes: 2 additions & 3 deletions src/features/settings/blocks/BlockedUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -25,7 +24,7 @@ export default function BlockedUsers() {

const sortedUsers = users && users.length > 0

Check failure on line 25 in src/features/settings/blocks/BlockedUsers.tsx

View workflow job for this annotation

GitHub Actions / ci

Insert `⏎···`
? [...users].sort((a, b) =>

Check failure on line 26 in src/features/settings/blocks/BlockedUsers.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `····` with `······`
(a.target?.name || '').localeCompare(b.target?.name || '')
(a.target?.name || "").localeCompare(b.target?.name || "")

Check failure on line 27 in src/features/settings/blocks/BlockedUsers.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `······(a.target?.name·||·"").localeCompare(b.target?.name·||·"")` with `··········(a.target?.name·||·"").localeCompare(b.target?.name·||·""),`
)

Check failure on line 28 in src/features/settings/blocks/BlockedUsers.tsx

View workflow job for this annotation

GitHub Actions / ci

Replace `····` with `········`
: [];

Check failure on line 29 in src/features/settings/blocks/BlockedUsers.tsx

View workflow job for this annotation

GitHub Actions / ci

Insert `··`

Expand All @@ -41,7 +40,7 @@ export default function BlockedUsers() {

return (
<>
<ListHeader style={{ marginBottom: '20px' }} className="ion-margin-bottom">
<ListHeader style={{ marginBottom: "20px" }} className="ion-margin-bottom">
<IonLabel>Blocked Users</IonLabel>
</ListHeader>

Expand Down

0 comments on commit d32c549

Please sign in to comment.