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

fixed link to professor page flow

parent b291ca57
Branches
Tags
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa
...@@ -7,6 +7,7 @@ import Backdrop from '@material-ui/core/Backdrop'; ...@@ -7,6 +7,7 @@ import Backdrop from '@material-ui/core/Backdrop';
import { Store } from '../Store.js'; import { Store } from '../Store.js';
import CloseIcon from '@material-ui/icons/Close'; import CloseIcon from '@material-ui/icons/Close';
import LabeledCheckbox from "../Components/Checkbox.js" import LabeledCheckbox from "../Components/Checkbox.js"
import {Link} from 'react-router-dom'
const StyledDivContainer = styled.div` const StyledDivContainer = styled.div`
background-color : rgb(255,255,255); background-color : rgb(255,255,255);
...@@ -86,7 +87,6 @@ export default function ColaborarModal (props) { ...@@ -86,7 +87,6 @@ export default function ColaborarModal (props) {
aria-labelledby="transition-modal-title" aria-labelledby="transition-modal-title"
aria-describedby="transition-modal-description" aria-describedby="transition-modal-description"
open={props.open} open={props.open}
centered="true" centered="true"
onClose={props.handleClose} onClose={props.handleClose}
closeAfterTransition closeAfterTransition
...@@ -121,9 +121,16 @@ export default function ColaborarModal (props) { ...@@ -121,9 +121,16 @@ export default function ColaborarModal (props) {
na plataforma com toda a comunidade escolar do país. na plataforma com toda a comunidade escolar do país.
</p> </p>
<StyledButtonsDiv> <StyledButtonsDiv>
<Link to={{
pathname : "/termos-publicar-recurso",
state : true
}}>
<StyledButton> <StyledButton>
<span style={{color:"#fff"}}>SIM</span> <span style={{color:"#fff"}}>SIM</span>
</StyledButton> </StyledButton>
</Link>
<StyledButton> <StyledButton>
<span style={{color:"#fff"}}>NÃO</span> <span style={{color:"#fff"}}>NÃO</span>
</StyledButton> </StyledButton>
......
...@@ -97,7 +97,7 @@ export default function TermsContainer (props) { ...@@ -97,7 +97,7 @@ export default function TermsContainer (props) {
userAgreement: true userAgreement: true
}) })
if (props.cameFromPublishButton) { if (props.location.state) {
props.history.push('/professor') props.history.push('/professor')
}else { }else {
props.history.push('/permission') props.history.push('/permission')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment