added comment form

This commit is contained in:
Ren Amamiya
2023-03-17 13:30:10 +07:00
parent b3f95366d3
commit 1084b208d3
3 changed files with 179 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import WithSidebarLayout from '@layouts/withSidebar';
import { DatabaseContext } from '@components/contexts/database';
import { Content } from '@components/note/content';
import FormBasic from '@components/note/form/basic';
import FormComment from '@components/note/form/comment';
import { useRouter } from 'next/router';
import {
@@ -35,10 +35,10 @@ export default function Page() {
}, [fetchRoot]);
return (
<div className="scrollbar-hide flex h-full flex-col overflow-y-auto py-5">
<div className="scrollbar-hide flex h-full flex-col gap-2 overflow-y-auto py-5">
<div className="flex h-min min-h-min w-full select-text flex-col px-3">{root && <Content data={root} />}</div>
<div>
<FormBasic />
<FormComment />
</div>
</div>
);