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
|
<TypeDeChampPieceJustificative
|
||||||
isVisible={isFile}
|
isVisible={isFile}
|
||||||
|
isTitreIdentite={isTitreIdentite}
|
||||||
directUploadUrl={state.directUploadUrl}
|
directUploadUrl={state.directUploadUrl}
|
||||||
filename={typeDeChamp.piece_justificative_template_filename}
|
filename={typeDeChamp.piece_justificative_template_filename}
|
||||||
handler={updateHandlers.piece_justificative_template}
|
handler={updateHandlers.piece_justificative_template}
|
||||||
|
|
|
@ -5,12 +5,14 @@ import type { Handler } from '../types';
|
||||||
|
|
||||||
export function TypeDeChampPieceJustificative({
|
export function TypeDeChampPieceJustificative({
|
||||||
isVisible,
|
isVisible,
|
||||||
|
isTitreIdentite,
|
||||||
url,
|
url,
|
||||||
filename,
|
filename,
|
||||||
handler,
|
handler,
|
||||||
directUploadUrl
|
directUploadUrl
|
||||||
}: {
|
}: {
|
||||||
isVisible: boolean;
|
isVisible: boolean;
|
||||||
|
isTitreIdentite: boolean;
|
||||||
url?: string;
|
url?: string;
|
||||||
filename?: string;
|
filename?: string;
|
||||||
handler: Handler<HTMLInputElement>;
|
handler: Handler<HTMLInputElement>;
|
||||||
|
@ -32,6 +34,17 @@ export function TypeDeChampPieceJustificative({
|
||||||
</div>
|
</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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue