fix: remove unused imports and parameter in thread-sidebar

This commit is contained in:
zhenyi 2026-05-30 15:00:06 +08:00
parent 41bd76c45b
commit c3370707af

View File

@ -1,11 +1,9 @@
import { useMemo, useState } from "react"; import { useMemo, useState } from "react";
import { import {
MessageSquare, MessageSquare,
CheckCircle2,
Archive, Archive,
Lock, Lock,
X, X,
Flame,
ArrowRight, ArrowRight,
CircleDot, CircleDot,
} from "lucide-react"; } from "lucide-react";
@ -16,6 +14,7 @@ export type Thread = {
id: string; id: string;
room: string; room: string;
seq: number; seq: number;
parent_seq: number;
title: string; title: string;
created_by: { id: string; display_name: string; username: string }; created_by: { id: string; display_name: string; username: string };
archived: boolean; archived: boolean;
@ -182,7 +181,7 @@ export default function ThreadSidebar({
</p> </p>
</div> </div>
)} )}
{filtered.map((thread, idx) => { {filtered.map((thread) => {
const creatorName = const creatorName =
thread.created_by.display_name || thread.created_by.username; thread.created_by.display_name || thread.created_by.username;
const initials = creatorName const initials = creatorName