Skip to content

Commit

Permalink
conversion du composant Alert en React et suppression du fichier pack…
Browse files Browse the repository at this point in the history
…age-lock.json
  • Loading branch information
cbrousseau1 committed Dec 3, 2024
1 parent 99cbe7d commit 635d794
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17,788 deletions.
10 changes: 8 additions & 2 deletions assets/entrepot/pages/service/view/Style/UploadLayerStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ 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 @@ -23,8 +24,13 @@ const UploadLayerStyles: FC<UploadLayerStylesProps> = ({ form, format, layers })
<p>{t("add_file", { format: format })}</p>
{format === "qml" && (
<>
<div className="fr-alert fr-alert--warning">{t("qml_message")}</div>
<br />
<Alert
closable={false}
description={t("qml_message")}
severity="warning"
small
/>
<br/>
</>
)}
{Object.keys(layers).map((uid) => {
Expand Down
Loading

0 comments on commit 635d794

Please sign in to comment.