@@ -2,7 +2,7 @@ import { useLang } from "ui/i18n";
22import { Trans , useTranslation } from "react-i18next" ;
33import { fr } from "@codegouvfr/react-dsfr" ;
44import { tss } from "tss-react" ;
5- import { shortEndMonthDate , monthDate } from "ui/datetimeUtils" ;
5+ import { shortEndMonthDate , monthDate , useFormattedDate } from "ui/datetimeUtils" ;
66import Tooltip from "@mui/material/Tooltip" ;
77import { capitalize } from "tsafe/capitalize" ;
88import { CnllServiceProviderModal } from "./CnllServiceProviderModal" ;
@@ -11,7 +11,6 @@ import config from "../../config-ui.json";
1111import type { ApiTypes } from "api" ;
1212import { SoftwareTypeTable } from "ui/shared/SoftwareTypeTable" ;
1313import { LogoURLButton } from "ui/shared/LogoURLButton" ;
14- import { Chip } from "@mui/material" ;
1514
1615//TODO: Do not use optional props (?) use ( | undefined ) instead
1716// so we are sure that we don't forget to provide some props
@@ -77,13 +76,6 @@ export const PreviewTab = (props: Props) => {
7776 const { t } = useTranslation ( ) ;
7877 const { lang } = useLang ( ) ;
7978
80- const scoreToLabel = ( score : number ) => {
81- if ( score < 0.1 ) return "error" ;
82- if ( score < 0.34 ) return "warning" ;
83- if ( score < 0.67 ) return "info" ;
84- return "success" ;
85- } ;
86-
8779 return (
8880 < >
8981 < section className = { classes . tabContainer } >
0 commit comments