Merge pull request #7196 from betagouv/feat/7132
Ajoute un avertissement sur les champs de type Titre Identité
This commit is contained in:
commit
76735819b4
2 changed files with 14 additions and 0 deletions
|
@ -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}
|
||||
|
|
|
@ -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'identité sera supprimé lors
|
||||
de l'acceptation du dossier
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue