From b21662af1b0e7a958a234f853a82bad6fc0df9eb Mon Sep 17 00:00:00 2001 From: "Carina.Akaia.near" Date: Thu, 19 Oct 2023 16:00:15 +0400 Subject: [PATCH] Fix community posting (#308) * chore: Format * Fix community post button --------- Co-authored-by: Bo Yao --- src/gigs-board/components/layout/Controls.jsx | 26 +++++++++++++------ src/gigs-board/pages/community/activity.jsx | 3 ++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/gigs-board/components/layout/Controls.jsx b/src/gigs-board/components/layout/Controls.jsx index a142bff5f..81b12938a 100644 --- a/src/gigs-board/components/layout/Controls.jsx +++ b/src/gigs-board/components/layout/Controls.jsx @@ -58,22 +58,32 @@ const buttonStyle = { }; return ( -
+
{props.href ? ( - + + /> + {props.title} ) : ( - )}
diff --git a/src/gigs-board/pages/community/activity.jsx b/src/gigs-board/pages/community/activity.jsx index d789ff39b..8c23704db 100644 --- a/src/gigs-board/pages/community/activity.jsx +++ b/src/gigs-board/pages/community/activity.jsx @@ -161,7 +161,8 @@ const CommunityActivityPage = ({ handle }) => { })} {widget("components.layout.Controls", { - labels: communityData.tag, + title: "Post", + href: href("Create", { labels: [communityData.tag] }), })}