v3: fixed linter error, code format
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 41s

This commit is contained in:
khannurien
2026-06-22 17:31:21 +00:00
parent a1b71ad0c8
commit 26f5abfa4e
12 changed files with 31 additions and 39 deletions

View File

@@ -77,8 +77,7 @@ function CommentNode({
const replyEditorRef = useRef<TextEditorHandle>(null);
const editEditorRef = useRef<TextEditorHandle>(null);
const { likeCounts, myLikes, castCommentLike, removeCommentLike } =
useWS();
const { likeCounts, myLikes, castCommentLike, removeCommentLike } = useWS();
const children = tree.get(comment.id) ?? [];

View File

@@ -1,6 +1,6 @@
import { Trans } from "@lingui/react/macro";
import { useAuth } from "../hooks/useAuth.ts";
import { type FeedTab, FEED_TABS } from "../config/feedTabs.ts";
import { FEED_TABS, type FeedTab } from "../config/feedTabs.ts";
import { useTabParam } from "../hooks/useTabParam.ts";
import { TabBar } from "./TabBar.tsx";

View File

@@ -30,8 +30,7 @@ export function LikeButton(
aria-label={liked ? t`Remove like` : t`Like`}
title={disabled ? t`Log in to like` : undefined}
>
{" "}
{count > 0
{count > 0
? (
<span
ref={countRef}

View File

@@ -28,8 +28,7 @@ export function VoteButton(
aria-label={voted ? t`Remove vote` : t`Upvote`}
title={disabled ? t`Log in to vote` : undefined}
>
{" "}
{count > 0
{count > 0
? (
<span
ref={countRef}