Merge pull request #7196 from betagouv/feat/7132

Ajoute un avertissement sur les champs de type Titre Identité
This commit is contained in:
Kara Diaby 2022-04-26 09:34:38 +02:00 committed by GitHub
commit 76735819b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -161,6 +161,7 @@ export const TypeDeChampComponent = SortableElement<TypeDeChampProps>(
/>
<TypeDeChampPieceJustificative
isVisible={isFile}
isTitreIdentite={isTitreIdentite}
directUploadUrl={state.directUploadUrl}
filename={typeDeChamp.piece_justificative_template_filename}
handler={updateHandlers.piece_justificative_template}

View file

@ -5,12 +5,14 @@ import type { Handler } from '../types';
export function TypeDeChampPieceJustificative({
isVisible,
isTitreIdentite,
url,
filename,
handler,
directUploadUrl
}: {
isVisible: boolean;
isTitreIdentite: boolean;
url?: string;
filename?: string;
handler: Handler<HTMLInputElement>;
@ -32,6 +34,17 @@ export function TypeDeChampPieceJustificative({
</div>
);
}
if (isTitreIdentite) {
return (
<div className="cell">
<p id={`${handler.id}-description`}>
Dans le cadre de la RGPD, le titre d&apos;identité sera supprimé lors
de l&apos;acceptation du dossier
</p>
</div>
);
}
return null;
}