-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gestion conseiller & candidat update infos (#150)
- Loading branch information
1 parent
1f9d0dc
commit 1d5928c
Showing
9 changed files
with
249 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useDispatch, useSelector } from 'react-redux'; | ||
import { userActions } from '../../actions'; | ||
import Header from '../common/Header'; | ||
import { useNavigate, useParams } from 'react-router-dom'; | ||
|
||
function ConfirmationEmailPro() { | ||
const navigate = useNavigate(); | ||
const { token } = useParams(); | ||
const dispatch = useDispatch(); | ||
const tokenVerifiedOK = useSelector(state => state.user?.isEmailPro); | ||
const tokenVerifiedError = useSelector(state => state.user?.patchError); | ||
|
||
useEffect(() => { | ||
dispatch(userActions.confirmUserEmailPro(token)); | ||
setTimeout(() => { | ||
navigate('/mon-espace'); | ||
}, 7000); | ||
}, []); | ||
|
||
return ( | ||
<div> | ||
<Header/> | ||
<div className=""> | ||
<div className="fr-grid-row fr-grid-row--center fr-mt-8w"> | ||
<div style={{ width: '50%', textAlign: 'center' }}> | ||
{tokenVerifiedOK && | ||
<div> | ||
<p className="fr-label flashBag" style={{ fontSize: '16px' }}> | ||
La confirmation de votre e-mail a été effectuée avec succès | ||
| ||
<i className="ri-check-line ri-xl" style={{ verticalAlign: 'middle' }}></i> | ||
</p> | ||
<h4>Nous allons vous rediriger vers votre espace candidat....</h4> | ||
</div> | ||
} | ||
{tokenVerifiedError && | ||
<p className="fr-label flashBag labelError" style={{ fontSize: '16px' }}> | ||
La confirmation de votre e-mail a échoué, <br/> | ||
veuillez réessayer plus tard | ||
</p> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ConfirmationEmailPro; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.