mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 04:11:11 +10:00
Update custom avatar
This commit is contained in:
@ -13,7 +13,7 @@ import { currentUserAtom } from "@/features/user/atoms/current-user-atom";
|
||||
import { useCreateCommentMutation } from "@/features/comment/queries/comment-query";
|
||||
import { asideStateAtom } from "@/components/layouts/global/hooks/atoms/sidebar-atom";
|
||||
import { useEditor } from "@tiptap/react";
|
||||
import { UserAvatar } from "@/components/ui/user-avatar.tsx";
|
||||
import { CustomAvatar } from "@/components/ui/custom-avatar.tsx";
|
||||
|
||||
interface CommentDialogProps {
|
||||
editor: ReturnType<typeof useEditor>;
|
||||
@ -94,8 +94,7 @@ function CommentDialog({ editor, pageId }: CommentDialogProps) {
|
||||
>
|
||||
<Stack gap={2}>
|
||||
<Group>
|
||||
<UserAvatar
|
||||
color="blue"
|
||||
<CustomAvatar
|
||||
size="sm"
|
||||
avatarUrl={currentUser.user.avatarUrl}
|
||||
name={currentUser.user.name}
|
||||
|
||||
@ -13,7 +13,7 @@ import {
|
||||
useUpdateCommentMutation,
|
||||
} from "@/features/comment/queries/comment-query";
|
||||
import { IComment } from "@/features/comment/types/comment.types";
|
||||
import { UserAvatar } from "@/components/ui/user-avatar";
|
||||
import { CustomAvatar } from "@/components/ui/custom-avatar.tsx";
|
||||
import { currentUserAtom } from "@/features/user/atoms/current-user-atom.ts";
|
||||
|
||||
interface CommentListItemProps {
|
||||
@ -63,8 +63,7 @@ function CommentListItem({ comment }: CommentListItemProps) {
|
||||
return (
|
||||
<Box ref={ref} pb="xs">
|
||||
<Group>
|
||||
<UserAvatar
|
||||
color="blue"
|
||||
<CustomAvatar
|
||||
size="sm"
|
||||
avatarUrl={comment.creator.avatarUrl}
|
||||
name={comment.creator.name}
|
||||
|
||||
Reference in New Issue
Block a user