boxwise / boxtribute

The code base for Boxtribute 2.0, a humanitarian aid web application making it easy to source, store and distribute goods to people in need in a fair and dignified way
https://www.boxtribute.org/
Apache License 2.0
33 stars 11 forks source link

Fix test warnings about deprecated defaultProps #1531

Closed jamescrowley closed 1 month ago

jamescrowley commented 2 months ago

React deprecated defaultProps back in 2019, and we're getting test warnings about it - https://github.com/facebook/react/pull/16210. This switches them to use JS default props instead.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.83%. Comparing base (9b1f140) to head (3d2c1c6). Report is 67 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1531 +/- ## ========================================== - Coverage 85.85% 85.83% -0.03% ========================================== Files 229 229 Lines 21709 21688 -21 Branches 1927 1913 -14 ========================================== - Hits 18639 18616 -23 - Misses 3034 3036 +2 Partials 36 36 ``` | [Flag](https://app.codecov.io/gh/boxwise/boxtribute/pull/1531/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=boxwise) | Coverage Δ | | |---|---|---| | [backend](https://app.codecov.io/gh/boxwise/boxtribute/pull/1531/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=boxwise) | `99.07% <ø> (ø)` | | | [frontend](https://app.codecov.io/gh/boxwise/boxtribute/pull/1531/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=boxwise) | `82.64% <ø> (-0.04%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=boxwise#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

HaGuesto commented 1 month ago

2.0: FE improvements from James