|
|
|
@ -19,7 +19,6 @@ class PollInfo extends Component{
|
|
|
|
|
super(props);
|
|
|
|
|
this.state={
|
|
|
|
|
courseName:undefined,
|
|
|
|
|
userName:undefined,
|
|
|
|
|
poll:undefined,
|
|
|
|
|
question_answered:undefined,
|
|
|
|
|
question_types:undefined,
|
|
|
|
@ -73,8 +72,7 @@ class PollInfo extends Component{
|
|
|
|
|
|
|
|
|
|
getInfo=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
courseName:this.props.current_user.course_name,
|
|
|
|
|
userName:this.props.current_user.username
|
|
|
|
|
courseName:this.props.current_user.course_name
|
|
|
|
|
})
|
|
|
|
|
let pollId=this.props.match.params.pollId;
|
|
|
|
|
let user_id=this.props.match.params.login;
|
|
|
|
@ -291,7 +289,7 @@ class PollInfo extends Component{
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
|
let{poll,question_answered,question_types,questions,courseName,userName,
|
|
|
|
|
let{poll,question_answered,question_types,questions,courseName,
|
|
|
|
|
inputArray,
|
|
|
|
|
modalsType,
|
|
|
|
|
modalsTopval,
|
|
|
|
|