VEuPathDB / web-monorepo

A monorepo that contains all frontend code for VEuPathDB websites
Apache License 2.0
2 stars 0 forks source link

Tech debt: remove deprecated `defaultProps` #1218

Open bobular opened 1 month ago

bobular commented 1 month ago

Saw this in browser console

CheckboxTree: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

A bit of grepping suggests some others may need doing too

packages/libs/wdk-client/src/Views/Answer/AnswerTable.jsx
packages/libs/wdk-client/src/Views/Records/RecordNavigation/RecordNavigationSection.jsx
packages/libs/wdk-client/src/Views/Records/RecordActionLink.jsx
packages/libs/wdk-client/src/Core/Root.tsx
packages/libs/wdk-client/src/Components/Display/TabbableContainer.tsx
packages/libs/wdk-client/src/Components/InputControls/NativeCheckboxList.tsx
packages/libs/wdk-client/src/Components/Overlays/Popup.tsx
packages/libs/wdk-client/src/Components/Shared/Spinnable.tsx
packages/libs/wdk-client/src/Components/SearchBox/RealTimeSearchBox.tsx
packages/libs/wdk-client/src/Components/AttributeFilter/FieldFilter.jsx
packages/libs/wdk-client/src/Components/AttributeFilter/MembershipField.jsx
packages/libs/wdk-client/src/Components/AttributeFilter/ServerSideAttributeFilter.jsx
packages/libs/wdk-client/src/Components/AttributeFilter/Histogram.jsx
packages/libs/coreui/src/components/inputs/checkboxes/CheckboxTree/CheckboxTree.tsx
packages/libs/coreui/src/components/inputs/SelectTree/SelectTree.tsx
packages/libs/coreui/src/assets/icons/CaretDown.tsx
packages/libs/coreui/src/assets/icons/CaretUp.tsx
packages/libs/coreui/src/assets/icons/DoubleArrow.tsx
packages/libs/coreui/src/assets/icons/Cancel.tsx
packages/libs/coreui/src/assets/icons/Arrow.tsx
packages/libs/web-common/src/components/records/Sequence.tsx
packages/libs/web-common/src/util/customElements.jsx
bobular commented 1 month ago

Also while we're at it!

Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node