Refactoring of most components regarding props and, Lint corrections

This commit is contained in:
Hollgy 2024-03-22 20:39:34 +01:00
parent 2e23c7919f
commit 146518b94a
12 changed files with 59 additions and 88 deletions

View file

@ -91,9 +91,7 @@ export async function getComments(
}
/** Incomplete */
export async function engagePost(
postId: string
): Promise<void> {
export async function engagePost(postId: string): Promise<void> {
const res = await fetch(`/api/engage_post?post_id=${postId}`);
const data = await res.json();
return data;