diff --git a/assets/wire/components/fields/DurationLabel.tsx b/assets/wire/components/fields/DurationLabel.tsx index ee667a6bd..4ad915d26 100644 --- a/assets/wire/components/fields/DurationLabel.tsx +++ b/assets/wire/components/fields/DurationLabel.tsx @@ -1,8 +1,18 @@ import React from 'react'; import PropTypes from 'prop-types'; import {gettext} from 'utils'; +import {IArticle} from 'interfaces'; + +interface IProps { + item: IArticle, + filterGroupLabels: { + [field: string]: string; + }, +} + +export function DurationLabel (props: IProps) { + const {item, filterGroupLabels} = props; -export function DurationLabel ({item, filterGroupLabels}: any) { if (item.extra?.duration == null) { return null; } @@ -35,8 +45,3 @@ export function DurationLabel ({item, filterGroupLabels}: any) { {text} ); } - -DurationLabel.propTypes = { - item: PropTypes.object, - filterGroupLabels: PropTypes.object, -};