* initial loading state unification
* feat(client): show buttons after 3 seconds
* fix: use window.setInterval explicitly
Otherwise TS assumes that it's node's setInterval
* feat(client): remove spinner when first button load
* feat(client): move the loader to the donate page button area
* feat(client): extract grid from modal donation form
* feat(client): remove duplicate donation forms
* feat(client):extract unused components from donationForm
* feat(client): load paypal on load not onInit (for perf)
* feat(client): set paypal loading state if stripe already loaded
* feat(clinet):make lpaypal oading condition strickt.
* Apply suggestions from code review
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* feat: clean up
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: remove circular dependency
redux depended on templates/Challenges/redux and vice versa. This
meant that import order mattered and confusing bugs could arise.
(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)
* feat: require imports to be in alphabetical order
Import order generally does not matter, but there are edge cases
(circular imports and css imports, for example) where changing order
changes behaviour
(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)
* chore: order imports
* fix: lift up challenge description + title comps
This brings the classic Show closer to the others as they
now all create the description and title components
* fix: remove donation-saga/index circular import
(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)
* refactor: extract action-types from settings
(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)
* fix: lint errors
* feat: prevent useless renames
* fix(client): refactor to use correct i18n t type
* appease Oliver by importing directly from react-i18n
* fix: use default TFunction type variable
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Renamed .js files to .tsx
* Migrated 404 to TS
TODO: Ask about default prop
* Migrated certification to TS
Converted to functional component
* Partially migrated challenges to TS
TODO: Ask about Redirect props
* Installed @types/react-helmet and @types/react-redux
Prep for migrating donate, this caused two new TS errors on 404 and certification
* Migrated donate to TS
TODO: Ask about prop spreading
* Migrated email-sign-up to TS
Converted to functional component and removed unused isSignedIn prop
* Migrated index to TS
Removed unused props
* Migrated learn to TS
* Installed @types/react-instantsearch-dom
Prep for migrating search
* Migrated search to TS
Converted to functional component
* Migrated settings to TS
* Migrated unsubscribed to TS
* Installed @types/validator and @types/lodash-es
Prep for migrating update-email
* Migrated update-email to TS
Converted to functional component
* Migrated user to TS
* Updated effect hook dependencies
Also removed unnecessary comments from 404
* Renamed challenges.test.tsx to .ts
* remove search.tsx, as search.js was removed
* revert: packages
* revert: packages
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>