import React from 'react'; import {browserHistory} from 'react-router'; import 'whatwg-fetch'; import './SensorList.scss'; const options = { month: 'numeric', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric', hour12: true }; export default class SensorList extends React.Component { constructor(){ super(); this.openLink = this.openLink.bind(this); } openLink(location){ browserHistory.push(`/sensor/${location}`); this.props.toggleOff(); } insertSensorData = (sensor, index) => { const date = new Date(sensor.updated); return (