mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 18:36:23 +02:00
feat(web): improve comment editing and mention rendering
This commit is contained in:
parent
f008acecfc
commit
0b675dfc3b
4 changed files with 29 additions and 21 deletions
|
|
@ -116,7 +116,7 @@ export function CommentItem({
|
|||
membersLoading = false,
|
||||
}: CommentItemProps) {
|
||||
const [{ data: currentUser }] = useAtom(currentUserAtom);
|
||||
|
||||
|
||||
const isCurrentUser = currentUser?.id === comment.author?.id;
|
||||
const displayName = isCurrentUser
|
||||
? "Me"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,12 @@ export interface CommentItemProps {
|
|||
isReply?: boolean;
|
||||
isEditing?: boolean;
|
||||
isSubmitting?: boolean;
|
||||
members?: Array<{ id: string; displayName: string | null; email: string; avatarUrl?: string | null }>;
|
||||
members?: Array<{
|
||||
id: string;
|
||||
displayName: string | null;
|
||||
email: string;
|
||||
avatarUrl?: string | null;
|
||||
}>;
|
||||
membersLoading?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue