/** * File: edit-widget-time-control.js * Author: Ricardo Hernandez-Montoya * Date: 13.04.2017 * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. * Unauthorized copying of this file, via any medium is strictly prohibited. **********************************************************************************/ import React, { Component } from 'react'; import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap'; class EditWidgetTimeControl extends Component { constructor(props) { super(props); this.state = { widget: { time: 0 } }; } componentWillReceiveProps(nextProps) { this.setState({ widget: nextProps.widget }); } render() { return ( Time this.props.handleChange(e)} /> Time in seconds ); } } export default EditWidgetTimeControl;