import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import {Tooltip,Menu} from 'antd'; import {getImageUrl} from 'educoder'; import "./usersInfo.css" import "../../courses/css/members.css" import "../../courses/css/Courses.css" import { LinkAfterLogin } from 'educoder' class InfosBanner extends Component{ constructor(props){ super(props); } render(){ let { data , id, login, moduleName, current_user, }=this.props; let is_current=this.props.is_current; let {username}= this.props.match.params; let {pathname}=this.props.location; moduleName=pathname.split("/")[3]; let user_id=this.props.current_user&&this.props.current_user.user_id; let user_type=this.props.current_user&&this.props.current_user.user_identity; let targetuserid=this.props.data&&this.props.data.id; // console.log(is_current) // console.log(current_user) // console.log(current_user.is_teacher) let shixuntype=false; let pathstype=false; let coursestypes=false; if(this.props&&this.props.mygetHelmetapi!=null){ let shixun="/shixuns"; let paths="/paths"; let courses="/courses"; this.props.mygetHelmetapi.navbar.map((item,key)=>{ var reg = RegExp(item.link); if(shixun.match(reg)){ if(item.hidden===true){ shixuntype=true } } if(paths.match(reg)){ if(item.hidden===true){ pathstype=true } } if(courses.match(reg)){ if(item.hidden===true){ coursestypes=true } } }) } return(
{data && data.name} {/*{*/} {/*data && is_current == false && data.identity =="学生" ? "" : */} {/**/} {/*}*/}