From 0b9b2bae49a3002e316ec389195efa12d7b5b5bd Mon Sep 17 00:00:00 2001 From: AlexisG Date: Fri, 8 Nov 2024 09:14:32 +0100 Subject: [PATCH] feat: Update ScanResultDialog informations The information is no longer related to the device, but to the file type. --- .../ScanResultCardImageActions.jsx | 10 +++---- .../ScanResultCardPDFActions.jsx | 6 +---- .../ScanResult/ScanResultDialog.jsx | 21 ++++++++++----- .../ModelSteps/ScanResult/ScanResultTitle.jsx | 11 ++++---- src/components/ModelSteps/helpers.js | 7 +++++ src/locales/en.json | 26 +++++++++---------- src/locales/fr.json | 24 ++++++++--------- 7 files changed, 57 insertions(+), 48 deletions(-) diff --git a/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardImageActions.jsx b/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardImageActions.jsx index fca2c794..38879fc1 100644 --- a/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardImageActions.jsx +++ b/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardImageActions.jsx @@ -4,7 +4,6 @@ import React from 'react' import Button from 'cozy-ui/transpiled/react/Buttons' import Icon from 'cozy-ui/transpiled/react/Icon' import IconButton from 'cozy-ui/transpiled/react/IconButton' -import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import { makeStyles } from 'cozy-ui/transpiled/react/styles' @@ -25,15 +24,12 @@ const ScanResultCardImageActions = ({ }) => { const classes = useStyles() const { t } = useI18n() - const { isDesktop } = useBreakpoints() - - const device = isDesktop ? 'desktop' : 'mobile' return ( <>