Skip to content

Commit 0cc54ab

Browse files
authored
Show forum create action on accepted suggestions (#46)
1 parent dbbfe37 commit 0cc54ab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,12 @@ function Suggestions({
867867
) : null}
868868
{suggestion.status === "accepted" ? (
869869
<footer>
870+
{suggestion.kind === "forum_creation" && suggestion.forumSpec ? (
871+
<button type="button" onClick={() => onApproveAndCreateForum(suggestion.id)}>
872+
<Plus aria-hidden="true" />
873+
Approve & Create
874+
</button>
875+
) : null}
870876
<button type="button" onClick={() => onStatus(suggestion.id, "implemented")}>
871877
Mark implemented
872878
</button>

0 commit comments

Comments
 (0)