docbrown/app
Francisco Delgado 2d4d469e86 Refactor/onboarding (#1083)
* Refactor Onboarding

- use ternary for simple if-else cases (to reduce lines of code)
- remove unecessary trailing else clause
- destructure state variables
- add a consistent return eg null when nothing is rendered
- use prevState callback when new state depends on previous state
- use switch case when toggling onboarding screens, constants easier to read imo.

* Add rest of refactor

* Remove destructure to meet 25 line minumum from codeclimate.

* Remove duplicate calls to indexOf.

* Remove duplicate calls to indexOf in handleSaveArticle.

* Refactor handleCheckUser

* Update snapshot

* Address PR review comments.

* Revert "Update snapshot"

This reverts commit e17e915286fb621ffca745b28193b7ba63dbc498.

* Update snapshot

* Add back if clause

* Update refactor
2018-11-28 10:21:26 -05:00
..
assets Add initial ios push notifications to server (#1207) 2018-11-27 17:40:43 -05:00
black_box Finalize new analytics style (#1117) 2018-11-14 10:50:05 -05:00
controllers Add Honeycomb gem and initial instrumentation (#695) 2018-11-28 10:08:27 -05:00
dashboards Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
decorators Notifications part 2 (#1156) 2018-11-19 18:14:24 -05:00
fields Add badges and org cta (#324) 2018-05-17 18:22:37 -04:00
helpers Make less sql queries when loading comments (#1197) 2018-11-26 10:51:38 -05:00
javascript Refactor/onboarding (#1083) 2018-11-28 10:21:26 -05:00
labor Add Honeycomb gem and initial instrumentation (#695) 2018-11-28 10:08:27 -05:00
lib Fix parsing error in header tags. (#1180) 2018-11-22 12:48:46 -05:00
liquid_tags Add stackblitz support (#1120) 2018-11-19 08:38:12 -05:00
mailers Export articles/posts (#576) 2018-11-21 11:13:36 -05:00
models Removing clear notifications attempt (#1209) 2018-11-27 18:29:50 -05:00
observers Add delay to slackbot ping (#1086) 2018-11-08 14:10:13 -05:00
policies Add initial ios push notifications to server (#1207) 2018-11-27 17:40:43 -05:00
sanitizers Feature/more markdown tags (#826) 2018-10-04 19:02:55 -04:00
services Removing clear notifications attempt (#1209) 2018-11-27 18:29:50 -05:00
uploaders Code cleanups (#659) 2018-08-07 11:00:13 -04:00
views Add initial ios push notifications to server (#1207) 2018-11-27 17:40:43 -05:00