1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

fixed end point - fixed posts in metadata

This commit is contained in:
2016-09-13 04:37:56 +00:00
parent e558fe5da2
commit e5d340df5d
10 changed files with 102 additions and 18 deletions

View File

@@ -1,11 +1,31 @@
import React from 'react';
let location, sensor, actions, uniqueDates;
export default class SensorInfo extends React.Component{
componentDidMount(){
location = this.props.params.location;
actions = this.props.sensorActions;
sensor = this.props.sensor;
actions.fetchUniqueDates(location);
/*
this.props.sensorActions.fetchSensorInfoYear('Grand Meadow', '2016');
this.props.sensorActions.fetchSensorInfoMonth('Grand Meadow', '2016', 'May');
this.props.sensorActions.fetchUniqueDates('Grand Meadow');
*/
}
componentWillReceiveProps(){
if(sensor.fetchedUniqueDates){
uniqueDates = sensor.uniqueDates;
//!sensor.fetchedInfoMonth ? actions.fetchSensorInfoMonth(location, )
}
}
render(){
return(
<div class="Content">Test123</div>