Use ES6 default arguments to avoid deprecated defaultProps on function components #1136
Annotations
10 errors
Run npm test:
__tests__/src/components/ThumbnailNavigation.test.js#L13
propType "fixture" is required and should not have a defaultProps declaration
|
Run npm test:
src/components/AudioViewer.js#L16
Don’t use defaultProps with function components
|
Run npm test:
src/components/AudioViewer.js#L16
Must destructure props in the function signature to initialize an optional prop
|
Run npm test:
src/components/CompanionWindow.js#L26
Don’t use defaultProps with function components
|
Run npm test:
src/components/CompanionWindow.js#L26
Must destructure props in the function signature to initialize an optional prop
|
Run npm test:
src/components/IIIFIFrameCommunication.js#L7
Don’t use defaultProps with function components
|
Run npm test:
src/components/IIIFIFrameCommunication.js#L7
propType "handleReceiveMessage" is not required, but has no corresponding default argument value
|
Run npm test:
src/components/IIIFThumbnail.js#L24
Don’t use defaultProps with function components
|
Run npm test:
src/components/IIIFThumbnail.js#L25
propType "border" is not required, but has no corresponding default argument value
|
Run npm test:
src/components/IIIFThumbnail.js#L25
propType "thumbnail" is not required, but has no corresponding default argument value
|
Loading