diff --git a/client/src/components/home/filterview.js b/client/src/components/home/filterview.js index 1b4ba32..53b0d8b 100644 --- a/client/src/components/home/filterview.js +++ b/client/src/components/home/filterview.js @@ -72,30 +72,6 @@ class FilterBox extends React.Component { enteredSearchTerm = (e) => { if (e.keyCode == 13) { this.props.updateSearch(this.state) - // var query = [] - // var parts = this.state.question.split(' '); - // var coursesToAdd = []; - // for (var i = 0; i < parts.length; i++) { - // var part = parts[i]; - // if (coursemap[part.toLowerCase()] != null) { - // if (i > 0 && ['cs', 'ee', 'eecs'].includes(parts[i-1].toLowerCase())) { - // query[i-1] = '' - // }; - // coursesToAdd.push(coursemap[part.toLowerCase()]); - // } else { - // query.push(part); - // } - // } - // var existingCourses = this.state.courses; - // for (var i = 0; i < coursesToAdd; i++) { - // if (!existingCourses.includes(coursesToAdd[i])) { - // existingCourses.push(coursesToAdd[i]); - // } - // } - // console.log('Courses: ' + existingCourses); - // this.setState({question: query.join(' '), courses: existingCourses}, () => { - // this.props.updateSearch(this.state) - // }); } } diff --git a/client/src/components/home/home.js b/client/src/components/home/home.js index f340c9b..a9fb528 100644 --- a/client/src/components/home/home.js +++ b/client/src/components/home/home.js @@ -5,15 +5,6 @@ import ListView from './listview.js' import DetailView from './detailview.js' import { Row, Container } from 'react-bootstrap'; -/* -React Architecture: - -NavBar => Component -Filters => Component -CardList => Component -CardView => Component -*/ - export default function Home() { return (