diff --git a/react/Viewer/Panel/Qualification.jsx b/react/Viewer/Panel/Qualification.jsx index 6babca8c79..a100b77e97 100644 --- a/react/Viewer/Panel/Qualification.jsx +++ b/react/Viewer/Panel/Qualification.jsx @@ -1,6 +1,8 @@ import React, { useRef, useState, createRef, useMemo, useEffect } from 'react' import PropTypes from 'prop-types' +import { models } from 'cozy-client' + import List from '../../MuiCozyTheme/List' import { withViewerLocales } from '../hoc/withViewerLocales' import { @@ -14,6 +16,9 @@ import ActionMenuWrapper from './ActionMenuWrapper' import QualificationListItemDate from './QualificationListItemDate' import QualificationListItemInformation from './QualificationListItemInformation' import QualificationListItemOther from './QualificationListItemOther' +import Expiration from './Expiration' + +const { isExpiringSoon } = models.paper const makeQualificationListItemComp = metadataName => { if (knownDateMetadataNames.includes(metadataName)) { @@ -64,6 +69,9 @@ const Qualification = ({ file }) => { return (