* feat: added rate limit dialogue
* test: added test cases for post comment
* test: added test for content creation dialogue
* test: added test cases for empty topics
* test: added test cases
* feat: added content rate limit dialogue on post API for post and comment
* fix: fixed editor close issue on submit
* test: addd test cases
* feat: Modified discussions FE so that ONLY users with verified emails can create content
* feat: added comment and response functionality
* test: fixed test cases
* refactor: refactor code and added HOC
* test: added test cases
* test: added test cases for failed and denied
* feat: added states for button
* refactor: added callback function
* test: added test case to close the dialogue
* refactor: refactor function
When a user browses the discussion pages, show a page showing
that there is no data, rather than a blank page.
This PR implements the designs for this page while refactoring the
DiscussionHome component so that it doesn't get much larger.
- Created a hooks file and move some of the larger hooks in there.
- Added selectors for the state that would be needed for the
components.
- Split the DiscussionHome into DiscussionContent and
DiscussionSidebar to make it clearer where certain things get
rendered.
- Adds a message to the sidebar to display No Results when
appropriate.
- Added the NoResults component to show when filtering posts and there
is nothing to show.