Ajoute un avertissement sur les champs de type Titre Identité
This commit is contained in:
parent
937b9c5b0e
commit
b1ab0c6ed2
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