diff --git a/src/components/widgets/comment/Comment.tsx b/src/components/widgets/comment/Comment.tsx index ef2d25f203..2b8105e39e 100644 --- a/src/components/widgets/comment/Comment.tsx +++ b/src/components/widgets/comment/Comment.tsx @@ -11,11 +11,11 @@ import clsx from 'clsx' import { m } from 'framer-motion' import { atom, useAtomValue } from 'jotai' import Markdown from 'markdown-to-jsx' -import Image from 'next/image' import type { CommentModel } from '@mx-space/api-client' import type { MarkdownToJSX } from 'markdown-to-jsx' import type { PropsWithChildren } from 'react' +import { Avatar } from '~/components/ui/avatar' import { RelativeTime } from '~/components/ui/relative-time' import { softSpringPreset } from '~/constants/spring' import { jotaiStore } from '~/lib/store' @@ -26,9 +26,8 @@ import { CommentReplyButton } from './CommentReplyButton' export const Comment: Component<{ comment: CommentModel & { new?: boolean } - showLine?: boolean }> = memo(function Comment(props) { - const { comment, className, showLine } = props + const { comment, className } = props const elAtom = useMemo(() => atom(null), []) // FIXME 兜一下后端给的脏数据 if (typeof comment === 'string') return null @@ -85,14 +84,14 @@ export const Comment: Component<{ className={clsx('relative my-2', className)} >
-
- +
@@ -154,13 +153,6 @@ export const Comment: Component<{
- - {showLine && ( -