import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; class TPMNav extends Component { render() { const { user, match, shixun } = 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) return (