mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
import { connect } from 'react-redux';
|
|
|
|
import LikeButtonP from '../components/LikeButton/LikeButtonP';
|
|
|
|
import { submitLike } from '../actions/Like/submitLike';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
handleLikeSubmit(postId: number, isLike: boolean, authenticityToken: string) {
|
|
dispatch(submitLike(postId, isLike, authenticityToken));
|
|
},
|
|
});
|
|
|
|
export default connect(
|
|
null,
|
|
mapDispatchToProps,
|
|
)(LikeButtonP); |