Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import React, { FC } from 'react' import CommentItem from './CommentItem' import Crowi from 'client/util/Crowi' import { CommonProps } from 'client/types/component' import { Comment } from 'client/types/crowi' type Props = CommonProps & { children?: React.ReactNode crowi: Crowi comments: Comment[] revisionId: string | null } const CommentList: FC<Props> = props => { const { crowi, comments, revisionId, ...others } = props return ( <div {...others}> {comments.map(comment => ( <CommentItem key={comment._id} crowi={crowi} comment={comment} revisionId={revisionId} /> ))} </div> ) } export default CommentList |