Add refresh btn to ValidationErrorPage
This commit is contained in:
@@ -15,6 +15,10 @@ export default function ValidationErrorPage() {
|
|||||||
navigate("/login");
|
navigate("/login");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleRefresh = () => {
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
|
||||||
if(user && user.validate === 1) return <Navigate to="/" />;
|
if(user && user.validate === 1) return <Navigate to="/" />;
|
||||||
|
|
||||||
return <Background>
|
return <Background>
|
||||||
@@ -27,7 +31,10 @@ export default function ValidationErrorPage() {
|
|||||||
https://comite.beaupont.fr/contactez-nous
|
https://comite.beaupont.fr/contactez-nous
|
||||||
</Link>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
<Button variant={"danger"} onClick={handleLogout}> Déconnexion </Button>
|
<div className={styles.btnContainer}>
|
||||||
|
<Button variant={"default"} onClick={handleRefresh}> Recharger </Button>
|
||||||
|
<Button variant={"danger"} onClick={handleLogout}> Déconnexion </Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Background>
|
</Background>
|
||||||
|
|||||||
@@ -22,4 +22,10 @@
|
|||||||
p {
|
p {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 15px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user