fix: various type issues and error handlings (#2831)
* fix(error):Fix a few error conditions, mostly around seriesNumber * apply few fixes
This commit is contained in:
1 parent
71f5fa8e2f
commit
0090605cf7
10 files changed
+51
-21
No files matched your search
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { useDrag } from 'react-dnd';
|
||||
import { Icon } from '../';
|
||||
import { StringNumber } from '../../Types';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -98,7 +99,7 @@ Thumbnail.propTypes = {
|
||||
}),
|
||||
imageAltText: PropTypes.string,
|
||||
description: PropTypes.string.isRequired,
|
||||
seriesNumber: PropTypes.string.isRequired,
|
||||
seriesNumber: StringNumber.isRequired,
|
||||
numInstances: PropTypes.number.isRequired,
|
||||
isActive: PropTypes.bool.isRequired,
|
||||
onClick: PropTypes.func.isRequired,
|
||||
|
||||
Reference in new issue
Block a user