diff --git a/src/app/_actions/actions.ts b/src/app/_actions/actions.ts
index dd13139..0dbef4b 100644
--- a/src/app/_actions/actions.ts
+++ b/src/app/_actions/actions.ts
@@ -17,7 +17,7 @@ export async function deleteComment(formData: FormData) {
export async function addComment(
content: string,
- post: Schema["Post"],
+ post: Schema["Post"]["type"],
paramsId: string
) {
if (content.trim().length === 0) return;
diff --git a/src/app/posts/[id]/page.tsx b/src/app/posts/[id]/page.tsx
index 990f4c1..488cce5 100644
--- a/src/app/posts/[id]/page.tsx
+++ b/src/app/posts/[id]/page.tsx
@@ -38,7 +38,7 @@ const Posts = async ({ params }: { params: { id: string } }) => {
) : null}
diff --git a/src/components/AddComment.tsx b/src/components/AddComment.tsx
index 38c0bf5..ed84afd 100644
--- a/src/components/AddComment.tsx
+++ b/src/components/AddComment.tsx
@@ -7,8 +7,12 @@ const Comments = ({
post,
paramsId,
}: {
- addComment: (content: string, post: Schema["Post"], paramsId: string) => void;
- post: Schema["Post"];
+ addComment: (
+ content: string,
+ post: Schema["Post"]["type"],
+ paramsId: string
+ ) => void;
+ post: Schema["Post"]["type"];
paramsId: string;
}) => {
const [comment, setComment] = useState("");
diff --git a/src/components/Post.tsx b/src/components/Post.tsx
index f1de94f..6891fc3 100644
--- a/src/components/Post.tsx
+++ b/src/components/Post.tsx
@@ -8,7 +8,7 @@ const Post = ({
onDelete,
isSignedIn,
}: {
- post: Pick;
+ post: Pick;
onDelete: (id: string) => void;
isSignedIn: boolean;
}) => {