mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-17 06:56:36 +00:00
Summary: This should ensure that there aren’t any runtime PropTypes errors. The change to reimplement `Object.entries` is due to the fact that my local Node environment (v6.11.1) does not yet support that ESnext function. Test Plan: Apply the following diff (`git apply`): ```diff diff --git a/explorer/src/UserExplorer.js b/explorer/src/UserExplorer.js index 8da252d..cdc1370 100644 --- a/explorer/src/UserExplorer.js +++ b/explorer/src/UserExplorer.js @@ -10,7 +10,7 @@ export class UserExplorer extends Component { static propTypes = { selectedPath: PropTypes.string.isRequired, selectedUser: PropTypes.string, - onSelectUser: PropTypes.func.isRequired, + onSelectUser: PropTypes.number.isRequired, data: commitUtilsPropTypes.commitData.isRequired, } ``` Then, `yarn test` should fail. Revert the diff, and `yarn test` should pass. wchargin-branch: react-proptypes-test