[x] My pull request has a descriptive title (not a vague title like Update README.md).
[x] My pull request targets the main branch of Chapter.
Closes #2273
Adds optional subscribe parameter to joinChapter mutation.
Adds checkbox allowing subscribe or not to chapter in case of not being chapter member already. It will be displayed only if:
User is logged in
User is not chapter member
I'd say displaying it also for not logged users is currently not feasible. Not only due to potentially showing it to somebody already being chapter member, but also because of increased complexity that would entail right now. I think ideally in such case, chakra-confirm would need to be replaced partially, or completely by new component.
👇 Click on the image for a new way to code review
####
[![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/freeCodeCamp/chapter/2479/ab18111c/59523bf5bafbcbb04daf5a13d2843abb6177fdae.svg)](https://app.codesee.io/r/reviews?pr=2479&src=https%3A%2F%2Fgithub.com%2FfreeCodeCamp%2Fchapter)
#### Legend
Update README.md
).main
branch of Chapter.Closes #2273
subscribe
parameter tojoinChapter
mutation.chakra-confirm
would need to be replaced partially, or completely by new component.