From c95cce04393080a52a54191cff7be8fec68af4b0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 15 May 2022 17:45:41 +0200 Subject: chore: add Article pages --- src/components/organisms/layout/comments-list.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/components/organisms/layout/comments-list.tsx') diff --git a/src/components/organisms/layout/comments-list.tsx b/src/components/organisms/layout/comments-list.tsx index 03f508e..f04354c 100644 --- a/src/components/organisms/layout/comments-list.tsx +++ b/src/components/organisms/layout/comments-list.tsx @@ -8,7 +8,7 @@ export type Comment = Omit & { child?: Comment[]; }; -export type CommentsListProps = { +export type CommentsListProps = Pick & { /** * An array of comments. */ @@ -17,10 +17,6 @@ export type CommentsListProps = { * The maximum depth. Use `0` to not display nested comments. */ depth: 0 | 1 | 2 | 3 | 4; - /** - * A callback function to save comment form data. - */ - saveComment: CommentProps['saveComment']; }; /** @@ -31,6 +27,7 @@ export type CommentsListProps = { const CommentsList: FC = ({ comments, depth, + Notice, saveComment, }) => { /** @@ -48,8 +45,9 @@ const CommentsList: FC = ({ return commentsList.map(({ child, ...comment }) => (
  • {child && !isLastLevel && ( -- cgit v1.2.3