diff --git a/client/src/pages/CommunityPage.tsx b/client/src/pages/CommunityPage.tsx index 3a90865..965617c 100644 --- a/client/src/pages/CommunityPage.tsx +++ b/client/src/pages/CommunityPage.tsx @@ -94,7 +94,7 @@ export default function CommunityPage() { { communityList.map((post) => { return ( -
+
@@ -116,17 +116,16 @@ export default function CommunityPage() {
@@ -150,7 +149,7 @@ export default function CommunityPage() {
-

+

{post.content}

@@ -189,17 +188,16 @@ export default function CommunityPage() {

Create a post!

-
@@ -218,18 +216,17 @@ export default function CommunityPage() { onKeyDown={onSearchKeyDown} /> @@ -238,14 +235,14 @@ export default function CommunityPage() { xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" - stroke-width="1.5" + strokeWidth={1.5} stroke="currentColor" className="size-6 text-white" onClick={onClickClear}> diff --git a/client/src/pages/CreatePostPage.tsx b/client/src/pages/CreatePostPage.tsx index 42b4357..b37b216 100644 --- a/client/src/pages/CreatePostPage.tsx +++ b/client/src/pages/CreatePostPage.tsx @@ -30,10 +30,10 @@ function CreatePostPage() { tags: '' }; - const handleSubmit = async (values: any, { setSubmitting, resetForm , setFieldError }: any) => { + const handleSubmit = async (values: any, { setSubmitting, resetForm, setFieldError }: any) => { try { - const response = await axios - .post(config.serverAddress + '/post', values); // Assuming an API route + const response = await axios + .post(config.serverAddress + '/post', values); // Assuming an API route if (response.status === 200) { console.log('Post created successfully:', response.data); resetForm(); // Clear form after successful submit @@ -56,18 +56,18 @@ function CreatePostPage() {
- - - + + +
diff --git a/client/src/pages/EditPostPage.tsx b/client/src/pages/EditPostPage.tsx index f9c8a05..f6a177b 100644 --- a/client/src/pages/EditPostPage.tsx +++ b/client/src/pages/EditPostPage.tsx @@ -89,15 +89,14 @@ function editPost() { xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" - stroke-width="1.5" + strokeWidth={1.5} stroke="black" - className="size-5" - > + className="size-5"> + + strokeLinecap="round" + strokeLinejoin="round" + d="M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3" />