Added comment model, comment post function

This commit is contained in:
Rykkel
2024-07-31 18:59:33 +08:00
parent 4d0a814b73
commit 209b03f35d
4 changed files with 146 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ import {
ArrowUTurnLeftIcon,
} from "../icons";
import { retrieveUserInformationById } from "../security/usersbyid";
import CommentsModule from "../components/CommentsModule";
interface Post {
title: string;
@@ -200,6 +201,10 @@ const PostPage: React.FC = () => {
</div>
<div className="w-2/12"></div>
</section>
<section>
<CommentsModule />
</section>
<Modal isOpen={isOpen} onOpenChange={onOpenChange}>
<ModalContent>
{(onClose) => (