From 3bd3bca09acefb7a6a63369412eb9c10dce507ec Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 6 Apr 2017 19:02:02 -0300 Subject: [PATCH] =?UTF-8?q?=C3=81dding=20proptypes=20to=20RespectButton?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/components/RespectButton.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/coral-plugin-respect/client/components/RespectButton.js b/plugins/coral-plugin-respect/client/components/RespectButton.js index d532b100f..9e851460e 100644 --- a/plugins/coral-plugin-respect/client/components/RespectButton.js +++ b/plugins/coral-plugin-respect/client/components/RespectButton.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, {Component} from 'react'; import styles from './style.css'; import Icon from './Icon'; @@ -8,7 +8,7 @@ import translations from '../translations.json'; const lang = new I18n(translations); -export default class RespectButton extends React.Component { +class RespectButton extends Component { handleClick = () => { const {postRespect, showSignInDialog, deleteAction, commentId} = this.props; @@ -59,3 +59,9 @@ export default class RespectButton extends React.Component { } } +RespectButton.propTypes = { + data: React.PropTypes.object.isRequired +}; + +export default RespectButton; +