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:
Bill Wallace authored and GitHub committed 2022-09-08 22:09:28 -04:00
1 parent 71f5fa8e2f
commit 0090605cf7
10 files changed
+51 -21

No files matched your search

@@ -4,6 +4,7 @@ import classnames from 'classnames';
import { useTranslation } from 'react-i18next';
import { ButtonGroup, Button, StudyItem, ThumbnailList } from '../';
import { StringNumber } from '../../Types';
const buttonClasses = 'text-white text-base border-none bg-black p-2 min-w-18';
const activeButtonClasses = 'bg-primary-main';
@@ -140,7 +141,7 @@ StudyBrowser.propTypes = {
imageSrc: PropTypes.string,
imageAltText: PropTypes.string,
seriesDate: PropTypes.string,
seriesNumber: PropTypes.string,
seriesNumber: StringNumber,
numInstances: PropTypes.number,
description: PropTypes.string,
componentType: PropTypes.oneOf([