Skip to content

Commit

Permalink
fix: suppression de l'avertissement comptabilité qml #428
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrousseau1 committed Feb 17, 2025
1 parent 48a35c1 commit 8100e8a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions assets/entrepot/pages/service/view/Style/Style.locale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { i18n } = declareComponentKeys<
| { K: "add_file"; P: { format: string }; R: string }
| { K: "select_file"; P: { format: string }; R: string }
| { K: "remove_style"; P: { styleName: string | undefined }; R: string }
| "qml_message"
>()("Style");
export type I18n = typeof i18n;

Expand All @@ -18,7 +17,6 @@ export const StyleFrTranslations: Translations<"fr">["Style"] = {
select_file: ({ format }) => `Sélectionner un fichier au format ${format}`,
remove_style: ({ styleName }) =>
styleName !== undefined ? `Êtes-vous sûr de vouloir supprimer le style ${styleName} ?` : "Êtes-vous sûr de vouloir supprimer ce style ?",
qml_message: "Les fichiers qml générés avec une version de QGIS > 3.28 ne sont pas encore compatibles",
};

export const StyleEnTranslations: Translations<"en">["Style"] = {
Expand All @@ -28,5 +26,4 @@ export const StyleEnTranslations: Translations<"en">["Style"] = {
select_file: ({ format }) => `Select file in format ${format}`,
remove_style: ({ styleName }) =>
styleName !== undefined ? `Are you sure you want to remove the style ${styleName}` : "Are you sure you want to remove this style",
qml_message: "qml files generated with QGIS version > 3.28 are not yet compatible",
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Upload } from "@codegouvfr/react-dsfr/Upload";
import { FC } from "react";
import { UseFormReturn } from "react-hook-form";
import { getTranslation } from "../../../../../i18n/i18n";
import { Alert } from "@codegouvfr/react-dsfr/Alert";

type UploadLayerStylesProps = {
form: UseFormReturn;
Expand All @@ -22,7 +21,6 @@ const UploadLayerStyles: FC<UploadLayerStylesProps> = ({ form, format, layers })
return (
<>
<p>{t("add_file", { format: format })}</p>
{format === "qml" && <Alert className={fr.cx("fr-mb-3v")} closable={false} description={t("qml_message")} severity="warning" small />}
{Object.keys(layers).map((uid) => {
return (
<div key={uid} className={fr.cx("fr-grid-row", "fr-mb-3w")}>
Expand Down

0 comments on commit 8100e8a

Please sign in to comment.