docbrown/app/javascript/CommentSubscription/__tests__
Miguel Guardia 364c3a8252
Fix subscribe to discussion button when user is not logged in (#12837)
* Add logic to subscribe button that shows login modal if user is not logged in
Pass in userstatus to CommentSubscription
Remove logic that loads comment subscription button for logged-in users only

* Modify test to account for new userStatus input in CommentSubscription

* Change UserStatus to isLoggedIn
Add propType to isLoggedIn
Remove preventDefault from click event

* Fix indentation and input on commentSubscription test
Create new isLoggedIn variable that returns boolean
Replace all instances of userStatus to isLoggedIn
Create test for showLoginModal when subscribing
2021-03-03 18:50:29 -06:00
..
CommentSubscription.test.jsx Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
commentSubscriptionUtilities.test.js [deploy] Add comment subscription component to article page (#7205) 2020-05-05 12:50:30 -04:00