New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add calendar and index #13
Conversation
ReactDOM.render( | ||
<Calendar />, | ||
document.getElementById('calendar') | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw ')'.
Expected an assignment or function call and instead saw an expression.
ReactDOM.render( | ||
<Calendar />, | ||
document.getElementById('calendar') | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw ')'.
Expected an assignment or function call and instead saw an expression.
if (document.getElementById('calendar')) { | ||
ReactDOM.render( | ||
<Calendar />, | ||
document.getElementById('calendar') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
if (document.getElementById('calendar')) { | ||
ReactDOM.render( | ||
<Calendar />, | ||
document.getElementById('calendar') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
|
||
$(function() { | ||
if (document.getElementById('calendar')) { | ||
ReactDOM.render( | ||
<Calendar />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'Calendar'.
Expected an identifier and instead saw '>'.
|
||
$(function() { | ||
if (document.getElementById('calendar')) { | ||
ReactDOM.render( | ||
<Calendar />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'Calendar'.
Expected an identifier and instead saw '>'.
return ( | ||
<div className="day-tile small-12 medium-6 large-3 columns" | ||
onMouseOver={() => this.hoverOn()} onMouseOut={() => this.hoverOff()}> | ||
<span>{display}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed regular expression.
Unrecoverable syntax error. (82% scanned).
return ( | ||
<div className="day-tile small-12 medium-6 large-3 columns" | ||
onMouseOver={() => this.hoverOn()} onMouseOut={() => this.hoverOff()}> | ||
<span>{display}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed regular expression.
Unrecoverable syntax error. (82% scanned).
key={day.day.id} | ||
questionBody={day.question.body} | ||
displayDate={displayDate} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed regular expression.
Unrecoverable syntax error. (86% scanned).
key={day.day.id} | ||
questionBody={day.question.body} | ||
displayDate={displayDate} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclosed regular expression.
Unrecoverable syntax error. (86% scanned).
} | ||
} | ||
|
||
export default Calendar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'export' is only available in ES6 (use 'esversion: 6').
} | ||
} | ||
|
||
export default Calendar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'export' is only available in ES6 (use 'esversion: 6').
onChange={this.handleDateChange} | ||
placeholderText="Select a day to view" | ||
/> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw ')'.
Expected an assignment or function call and instead saw an expression.
onChange={this.handleDateChange} | ||
placeholderText="Select a day to view" | ||
/> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw ')'.
Expected an assignment or function call and instead saw an expression.
selected={this.state.selectedDate} | ||
onChange={this.handleDateChange} | ||
placeholderText="Select a day to view" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misleading line break before '/'; readers may interpret this as an expression boundary.
Expected an identifier and instead saw '>'.
Missing semicolon.
selected={this.state.selectedDate} | ||
onChange={this.handleDateChange} | ||
placeholderText="Select a day to view" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misleading line break before '/'; readers may interpret this as an expression boundary.
Expected an identifier and instead saw '>'.
Missing semicolon.
return ( | ||
<DatePicker | ||
selected={this.state.selectedDate} | ||
onChange={this.handleDateChange} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw '.'.
Missing semicolon.
return ( | ||
<DatePicker | ||
selected={this.state.selectedDate} | ||
onChange={this.handleDateChange} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw '.'.
Missing semicolon.
render() { | ||
return ( | ||
<DatePicker | ||
selected={this.state.selectedDate} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw '.'.
Missing semicolon.
render() { | ||
return ( | ||
<DatePicker | ||
selected={this.state.selectedDate} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw '.'.
Missing semicolon.
|
||
render() { | ||
return ( | ||
<DatePicker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw '<'.
Expected ')' to match '(' from line 20 and instead saw 'DatePicker'.
Missing semicolon.
|
||
render() { | ||
return ( | ||
<DatePicker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an identifier and instead saw '<'.
Expected ')' to match '(' from line 20 and instead saw 'DatePicker'.
Missing semicolon.
import DatePicker from 'react-datepicker'; | ||
import Moment from 'moment'; | ||
|
||
class Calendar extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
import DatePicker from 'react-datepicker'; | ||
import Moment from 'moment'; | ||
|
||
class Calendar extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; | |||
import DatePicker from 'react-datepicker'; | |||
import Moment from 'moment'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; | |||
import DatePicker from 'react-datepicker'; | |||
import Moment from 'moment'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; | |||
import DatePicker from 'react-datepicker'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; | |||
import DatePicker from 'react-datepicker'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,30 @@ | |||
import React, { Component } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'import' is only available in ES6 (use 'esversion: 6').
No description provided.