12eeb06c40
The number of props to pass is getting out hand, so just pass the Comment object directly. Also, moved the "is my comment" check into LivestreamComment, so we don't need to pass it as a prop from the parent.
11 lines
446 B
JavaScript
11 lines
446 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectStakedLevelForChannelUri, selectClaimForUri, selectMyClaimIdsRaw } from 'redux/selectors/claims';
|
|
import LivestreamComment from './view';
|
|
|
|
const select = (state, props) => ({
|
|
claim: selectClaimForUri(state, props.uri),
|
|
stakedLevel: selectStakedLevelForChannelUri(state, props.authorUri),
|
|
myChannelIds: selectMyClaimIdsRaw(state),
|
|
});
|
|
|
|
export default connect(select)(LivestreamComment);
|