mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
28 lines
598 B
JavaScript
28 lines
598 B
JavaScript
import React from 'react';
|
|
import styles from './style.css';
|
|
import {Icon} from 'coral-ui';
|
|
|
|
export default (props) => {
|
|
const handleClick = () => {
|
|
props.actions.clickButton();
|
|
// props.postRespect({
|
|
// item_id: props.comment.id,
|
|
// item_type: 'COMMENTS'
|
|
// });
|
|
};
|
|
const {clicked} = props.state.respect;
|
|
|
|
return (
|
|
<div className={styles.Respect} key={props.key}>
|
|
<button
|
|
className={clicked ? styles.clicked : ''}
|
|
onClick={handleClick}>
|
|
Respect
|
|
<Icon name="done"/>
|
|
<span>9</span>
|
|
</button>
|
|
</div>
|
|
);
|
|
};
|
|
|