Skip to content
Snippets Groups Projects
Commit 3673d5b8 authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

added redirect to home function

parent f280b58b
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa
...@@ -120,6 +120,9 @@ export default function PermissionsContainer(props) { ...@@ -120,6 +120,9 @@ export default function PermissionsContainer(props) {
props.history.push("/termos-publicar-recurso"); props.history.push("/termos-publicar-recurso");
}; };
const redirectToHome = () => {
props.history.push("/");
};
return ( return (
<> <>
{state.userAgreedToPublicationTerms ? ( {state.userAgreedToPublicationTerms ? (
...@@ -180,7 +183,7 @@ export default function PermissionsContainer(props) { ...@@ -180,7 +183,7 @@ export default function PermissionsContainer(props) {
backgroundColor: "#e9e9e9", backgroundColor: "#e9e9e9",
}} }}
> >
<Styledspan style={{ color: "rgb(102, 102, 102)" , fontWeight : "600 !important"}}> <Styledspan style={{ color: "rgb(102, 102, 102)" , fontWeight : "600 !important"}} onClick={() => {redirectToHome()}}>
Cancelar Cancelar
</Styledspan> </Styledspan>
</Button> </Button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment