{"size": 478, "ext": "js", "max_stars_repo_path": "src/frontlib/components/ExamBlock/Layout/Aside/index.js", "max_stars_repo_name": "zhangxu003/react-dva-bizcharts", "max_stars_repo_stars_event_min_datetime": "2020-01-16T03:12:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-16T03:17:46.000Z", "max_issues_repo_path": "src/frontlib/components/ExamBlock/Layout/Aside/index.js", "max_issues_repo_name": "zhangxu003/react-dva-bizcharts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/frontlib/components/ExamBlock/Layout/Aside/index.js", "max_forks_repo_name": "zhangxu003/react-dva-bizcharts", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.9166666667, "max_line_length": 52, "alphanum_fraction": 0.6276150628}
import React, { PureComponent } from 'react';
import {connect} from 'dva';
import ExamAside from './examAside';       // 学生展示模式
import PracticeAside from "./practiceAside"; // 选题模式

@connect(({examBlock})=>{
  const {taskType} = examBlock;
  return {
    taskType,     // 考试模式还是练习模式
  }
})
class Aside extends PureComponent {

  render() {
    const { taskType } = this.props;
    if( !taskType ){
      return null;
    }
    return <ExamAside />;
  }
}

export default Aside;
