import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; class TPMNav extends Component { render() { // console.log("componentDidMount"); // console.log("TPMNavTPMNavTPMNavTPMNav"); // console.log(this.props); const { user, match, shixun, secret_repository,is_jupyter} = this.props; let isAdminOrCreator = false; if (user) { isAdminOrCreator = user.admin || user.manager } const shixunId = match.params.shixunId; // const challengesPath = `/shixuns/${shixunId}/challenges`; // console.log(this.props.propaedeutics) const challengesPath = `/shixuns/${shixunId}/challenges`; // console.log(match.path) // console.log("TPMNavTPMNavTPMNav"); // console.log(is_jupyter); const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:""; const isfalse=true; return ( isfalse?"":