From e0c7c5a7dca4ee1781c677fe9f44d6c3bad8418c Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Tue, 7 Jan 2025 10:04:31 +0100 Subject: [PATCH] feat(Viewer): Hide the qualification in the panel if not supported --- packages/cozy-viewer/src/Panel/Qualification.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cozy-viewer/src/Panel/Qualification.jsx b/packages/cozy-viewer/src/Panel/Qualification.jsx index 81e6542391..d843e55a6e 100644 --- a/packages/cozy-viewer/src/Panel/Qualification.jsx +++ b/packages/cozy-viewer/src/Panel/Qualification.jsx @@ -1,6 +1,7 @@ import PropTypes from 'prop-types' import React, { Fragment, useRef, useState, createRef, useEffect } from 'react' +import { hasSupportedQualification } from 'cozy-client/dist/models/document/qualification' import { hasQualifications } from 'cozy-client/dist/models/file' import { isExpiringSoon, @@ -71,7 +72,7 @@ const Qualification = ({ file, isReadOnly }) => { {isExpiringSoon(file) && !isExpirationAlertHidden(file) && ( )} - {hasQualifications(file) ? ( + {hasSupportedQualification(file) ? (