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
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
......@@ -7,6 +7,7 @@ import Backdrop from '@material-ui/core/Backdrop';
import { Store } from '../Store.js';
import CloseIcon from '@material-ui/icons/Close';
import LabeledCheckbox from "../Components/Checkbox.js"
import {Link} from 'react-router-dom'
const StyledDivContainer = styled.div`
background-color : rgb(255,255,255);
......@@ -86,7 +87,6 @@ export default function ColaborarModal (props) {
aria-labelledby="transition-modal-title"
aria-describedby="transition-modal-description"
open={props.open}
centered="true"
onClose={props.handleClose}
closeAfterTransition
......@@ -121,9 +121,16 @@ export default function ColaborarModal (props) {
na plataforma com toda a comunidade escolar do país.
</p>
<StyledButtonsDiv>
<StyledButton>
<span style={{color:"#fff"}}>SIM</span>
</StyledButton>
<Link to={{
pathname : "/termos-publicar-recurso",
state : true
}}>
<StyledButton>
<span style={{color:"#fff"}}>SIM</span>
</StyledButton>
</Link>
<StyledButton>
<span style={{color:"#fff"}}>NÃO</span>
</StyledButton>
......
......@@ -97,7 +97,7 @@ export default function TermsContainer (props) {
userAgreement: true
})
if (props.cameFromPublishButton) {
if (props.location.state) {
props.history.push('/professor')
}else {
props.history.push('/permission')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment