diff --git a/packages/client/src/components/document/comments/comments/Item/index.module.scss b/packages/client/src/components/document/comments/comments/Item/index.module.scss deleted file mode 100644 index f424248f..00000000 --- a/packages/client/src/components/document/comments/comments/Item/index.module.scss +++ /dev/null @@ -1,25 +0,0 @@ -.wrap { - display: flex; - padding: 9px 0; - - + .wrap { - margin-top: 16px; - } - - .rightWrap { - flex: 1; - margin-left: 16px; - overflow: auto; - - > main { - margin: 10px 0; - color: var(--semi-color-text-0); - } - - > footer { - span { - cursor: pointer; - } - } - } -} diff --git a/packages/client/src/components/document/comments/comments/Item/index.tsx b/packages/client/src/components/document/comments/comments/Item/index.tsx deleted file mode 100644 index 566f77a1..00000000 --- a/packages/client/src/components/document/comments/comments/Item/index.tsx +++ /dev/null @@ -1,89 +0,0 @@ -import { IconUser } from '@douyinfe/semi-icons'; -import { Avatar, Popconfirm, Skeleton, Space, Typography } from '@douyinfe/semi-ui'; -import type { IComment, IUser } from '@think/domains'; -import { LocaleTime } from 'components/locale-time'; -import { useUser } from 'data/user'; -import React from 'react'; - -import styles from './index.module.scss'; - -interface IProps { - comment: IComment; - replyComment: (comment: IComment) => void; - editComment: (comment: IComment) => void; - deleteComment: (comment: IComment) => void; -} - -const { Text } = Typography; - -export const CommentItem: React.FC = ({ comment, replyComment, editComment, deleteComment }) => { - const { user } = useUser(); - const { createUser = {} } = comment; - - if (!comment) return null; - - return ( -
-
- - - -
-
-
- - {(createUser as IUser).name} - - - - -
-
-
-
-
- - replyComment(comment)}> - 回复 - - {user && user.id === comment.createUserId && ( - editComment(comment)}> - 编辑 - - )} - deleteComment(comment)}> - - 删除 - - - -
-
-
- ); -}; - -export const CommentItemPlaceholder = () => { - return ( - -
- -
-
-
- -
-
-
- -
-
-
- - } - >
- ); -};