From 7deed83dbb8835727c743662bee776794d460e74 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 27 Dec 2021 11:12:47 +0100 Subject: chore: display comments as a tree I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth. --- src/ts/types/comments.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ts') diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts index d5c0052..75e7d23 100644 --- a/src/ts/types/comments.ts +++ b/src/ts/types/comments.ts @@ -20,6 +20,7 @@ export type Comment = { date: string; id: string; parentDatabaseId: number; + parentId: string | null; replies: Comment[]; }; -- cgit v1.2.3