diff --git a/src/client/components/CourseInfo.js b/src/client/components/CourseInfo.js index 6cc8b87..8f96354 100644 --- a/src/client/components/CourseInfo.js +++ b/src/client/components/CourseInfo.js @@ -21,11 +21,9 @@ class CourseInfo extends React.Component { render() { return ( -
-
{this.props.course.courseName}
-
+
{this.props.course.courseName}
); } } -export default connect(null, mapDispatchToState)(CourseInfo); \ No newline at end of file +export default connect(null, mapDispatchToState)(CourseInfo); diff --git a/src/client/components/Decks.js b/src/client/components/Decks.js index a72e839..6e31f0e 100644 --- a/src/client/components/Decks.js +++ b/src/client/components/Decks.js @@ -4,7 +4,7 @@ import DeckItem from './DeckItem'; const Decks = ({ studentDecks }) => (
-

Decks

+

Decks

{_.map(studentDecks, function (deckSet, key) { diff --git a/src/client/components/StudentsTab.js b/src/client/components/StudentsTab.js index 31ac8ec..ed0fb06 100644 --- a/src/client/components/StudentsTab.js +++ b/src/client/components/StudentsTab.js @@ -24,13 +24,13 @@ class StudentsTab extends React.Component { render() { return (
-

+

{this.props.students.courseName}

{this.props.students.students.map(student => -
+
{student.name} {student.email}
)} diff --git a/src/client/containers/AddCourse.js b/src/client/containers/AddCourse.js index f125a4d..3c66938 100644 --- a/src/client/containers/AddCourse.js +++ b/src/client/containers/AddCourse.js @@ -15,14 +15,20 @@ let AddCourse = ({ dispatch }) => { dispatch(addCourse(input.value)) input.value = '' }}> - { - input = node - }} /> - +
+ { + input = node + }} + className="validate" + type="text" + id="course_name"/> + +
+
) } AddCourse = connect()(AddCourse) -export default AddCourse \ No newline at end of file +export default AddCourse diff --git a/src/client/containers/AddStudent.js b/src/client/containers/AddStudent.js index 6011f01..5060ae1 100644 --- a/src/client/containers/AddStudent.js +++ b/src/client/containers/AddStudent.js @@ -15,10 +15,16 @@ let AddStudent = ({ dispatch, courseId }) => { dispatch(addStudent(courseId, input.value)) input.value = '' }}> - { - input = node - }} /> - +
+ { + input = node + }} + className="validate" + type="text" + id="student_email"/> + +
+
)