/** * File: widget-button.js * Author: Ricardo Hernandez-Montoya * Date: 29.03.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'; class WidgetButton extends Component { action(e) { e.target.blur(); // Remove focus console.log('Button widget action'); } render() { return (
{ this.props.editing ? ( ) : ( ) }
); } } export default WidgetButton;