@@ -3,6 +3,7 @@ import React, { useCallback, useReducer, useState } from 'react';
3
3
import {
4
4
choixTypeAidantFait ,
5
5
choixUtilisationFaite ,
6
+ demandeDevenirAidantCreee ,
6
7
Etape ,
7
8
initialiseReducteur ,
8
9
reducteurEtapes ,
@@ -32,6 +33,8 @@ import { FormulaireDevenirAidant } from '../devenir-aidant/formulaire-devenir-ai
32
33
import { TypographieH5 } from '../../../composants/communs/typographie/TypographieH5/TypographieH5.tsx' ;
33
34
import { Toast } from '../../../composants/communs/Toasts/Toast.tsx' ;
34
35
import Button from '../../../composants/atomes/Button/Button.tsx' ;
36
+ import { TypographieH4 } from '../../../composants/communs/typographie/TypographieH4/TypographieH4.tsx' ;
37
+ import { LienMailtoMAC } from '../../../composants/atomes/LienMailtoMAC.tsx' ;
35
38
36
39
export const EcranDemandeDevenirAidant = ( ) => {
37
40
const navigationMAC = useNavigationMAC ( ) ;
@@ -84,8 +87,6 @@ export const EcranDemandeDevenirAidant = () => {
84
87
'Une erreur est survenue lors de la demande devenir aidant'
85
88
) ;
86
89
87
- console . log ( { corpsMutation } ) ;
88
- return Promise . resolve ( ) ;
89
90
return macAPI . execute < void , void , CorpsDemandeDevenirAidant > (
90
91
constructeurParametresAPI < CorpsDemandeDevenirAidant > ( )
91
92
. url ( actionSoumettre . url )
@@ -96,7 +97,8 @@ export const EcranDemandeDevenirAidant = () => {
96
97
) ;
97
98
} ,
98
99
onSuccess : ( ) => {
99
- // navigate('#formulaire-formation');
100
+ envoie ( demandeDevenirAidantCreee ( ) ) ;
101
+ window . scrollTo ( { top : 0 } ) ;
100
102
} ,
101
103
} ) ;
102
104
@@ -233,6 +235,37 @@ export const EcranDemandeDevenirAidant = () => {
233
235
</ FormulaireDevenirAidant >
234
236
</ div > ,
235
237
] ,
238
+ [
239
+ 'confirmationDemandeDevenirAidantPriseEnCompte' ,
240
+ < div
241
+ id = "confirmationDemandeDevenirAidantPriseEnCompte"
242
+ className = "fr-container fr-grid-row fr-grid-row--center zone-confirmation-formulaire-devenir-aidant"
243
+ >
244
+ < div className = "fr-col-md-8 fr-col-sm-12 section confirmation" >
245
+ < TypographieH4 >
246
+ Votre demande a bien été prise en compte !
247
+ </ TypographieH4 >
248
+ < p >
249
+ Celle-ci sera traitée dans les meilleurs délais.
250
+ < br />
251
+ < br />
252
+ Celle-ci sera traitée dans les meilleurs délais. Vous allez être mis
253
+ en relation avec la délégation régionale de l’ANSSI de votre
254
+ territoire, qui reviendra vers vous par mail pour vous indiquer les
255
+ prochaines dates des ateliers Devenir Aidant MonAideCyber.
256
+ < br />
257
+ < br />
258
+ Pensez à vérifier dans vos spams ou contactez-nous à
259
+ < LienMailtoMAC />
260
+ </ p >
261
+ < a href = "/" >
262
+ < Button type = "button" variant = "primary" >
263
+ Retour à la page d'accueil
264
+ </ Button >
265
+ </ a >
266
+ </ div >
267
+ </ div > ,
268
+ ] ,
236
269
] ) ;
237
270
238
271
return (
0 commit comments