Refactoring of most components regarding props and, Lint corrections
This commit is contained in:
parent
2e23c7919f
commit
146518b94a
12 changed files with 59 additions and 88 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue