docbrown/app/javascript
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
..
.storybook Added react aliases in Storybook webpack configuration. (#12825) 2021-02-26 09:25:38 +00:00
actionsPanel CSS size reduce + cleanups. (#12625) 2021-02-16 13:44:26 +01:00
admin Add admin overview page (#12726) 2021-03-01 18:59:05 -06:00
analytics Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
article-form improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
articles improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
chat bugfix (#12703) 2021-02-16 15:50:37 +01:00
CommentSubscription Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
common-prop-types Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
contentDisplayPolicy Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
crayons improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
githubRepos Deprecate old button stylings with Crayons buttons (#10694) [deploy] 2020-10-14 07:28:41 -07:00
icons Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
leftSidebar Replace redundant div with Fragment (#12613) 2021-02-09 11:41:46 -06:00
listings improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
modCenter Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
onboarding Fix typo (#12824) 2021-02-25 15:03:16 -06:00
organization Fixed Error: Not implemented: window.computedStyle(elt, pseudoElt) console error in frontend tests. (#11633) 2020-11-26 16:55:33 -05:00
packs Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
podcasts Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
profileDropdown Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
readingList Created the <MediaQuery /> component and useMediaQuery hook. (#12809) 2021-02-25 14:28:44 -05:00
responseTemplates improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
Search Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
searchableItemList Reading List 15 minute fixes to prepare for #11983 (#12710) 2021-02-18 11:16:50 +01:00
shared/components Created the <MediaQuery /> component and useMediaQuery hook. (#12809) 2021-02-25 14:28:44 -05:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
topNavigation Remove 'showing' from settings dropdown in mobile devices when page loads (#12753) 2021-02-19 16:47:38 -06:00
utilities Add paste image (#10212) 2021-02-04 10:58:56 -05:00
.eslintrc.js Added the @components webpack alias to the project (#12808) 2021-02-24 16:07:48 +01:00
netlify.toml Try yarn instead over npm for storybook deploys (#12376) 2021-02-26 10:30:56 -05:00