mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 03:21:53 +08:00
Ádding proptypes to RespectButton
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user