diff --git a/src/js/components/root.js b/src/js/components/root.js
index dcc5441..5005df9 100644
--- a/src/js/components/root.js
+++ b/src/js/components/root.js
@@ -251,9 +251,20 @@ class RouteSearch extends Component {
}
}
+class RouteResults extends Component {
+ render() {
+ console.log(this.props.routes);
+ if (!this.props.routes) {
+ return (
);
+ }
+
+ return (
+ Trains:
+
);
+ }
+}
+
class RoutePlanner extends Component {
-
-
render() {
const curTime = this.props.curTime;
const mapFilename = isSundaySchedule(curTime) ? "BART-Map-Sunday.png" : "BART-Map-Weekday-Saturday.png";
@@ -274,6 +285,7 @@ class RoutePlanner extends Component {
Search scheduled trains:
+
or see the official bart scheduler for a given station, date and time:
@@ -306,6 +318,7 @@ export class Root extends Component {
} />
diff --git a/src/js/reducers/update.js b/src/js/reducers/update.js
index 512ae49..908d228 100644
--- a/src/js/reducers/update.js
+++ b/src/js/reducers/update.js
@@ -14,6 +14,11 @@ export class UpdateReducer {
if (elevators) {
state.elevators = elevators;
}
+
+ const routes = _.get(data, "routes", false);
+ if (routes) {
+ state.routes = routes;
+ }
}
}
}