@@ -41,21 +38,10 @@ export function Profile({ self }: IProfileProps) {
)}
-
- {sortedPosts &&
- sortedPosts.map((p) => {
- const date = new Date(p.createdAt * 1000);
- return (
-
- );
- })}
-
+
);
}
diff --git a/client/src/api/Post.ts b/client/src/api/Post.ts
index e285e8a..7c530d3 100644
--- a/client/src/api/Post.ts
+++ b/client/src/api/Post.ts
@@ -13,6 +13,7 @@ export async function createPost(text: string): Promise