Rename selector

This commit is contained in:
Rafael 2022-03-03 11:20:09 -03:00 committed by Thomas Zarebczan
parent c1a67f6864
commit fea79d81fb
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { selectClaimIsMineForUri } from 'redux/selectors/claims'; import { selectClaimIsMineForUri } from 'redux/selectors/claims';
import { selectIsFetchingCommentsByParentId, selectRepliesForParentId } from 'redux/selectors/comments'; import { selectIsFetchingCommentsForParentId, selectRepliesForParentId } from 'redux/selectors/comments';
import CommentsReplies from './view'; import CommentsReplies from './view';
const select = (state, props) => { const select = (state, props) => {
@ -9,7 +9,7 @@ const select = (state, props) => {
return { return {
fetchedReplies: selectRepliesForParentId(state, parentId), fetchedReplies: selectRepliesForParentId(state, parentId),
claimIsMine: selectClaimIsMineForUri(state, uri), claimIsMine: selectClaimIsMineForUri(state, uri),
isFetching: selectIsFetchingCommentsByParentId(state, parentId), isFetching: selectIsFetchingCommentsForParentId(state, parentId),
}; };
}; };

View file

@ -31,7 +31,7 @@ export const selectMyReactsForComment = (state: State, commentIdChannelId: strin
// @commentIdChannelId: Format = 'commentId:MyChannelId' // @commentIdChannelId: Format = 'commentId:MyChannelId'
return state.comments.myReactsByCommentId && state.comments.myReactsByCommentId[commentIdChannelId]; return state.comments.myReactsByCommentId && state.comments.myReactsByCommentId[commentIdChannelId];
}; };
export const selectIsFetchingCommentsByParentId = (state: State, parentId: string) => { export const selectIsFetchingCommentsForParentId = (state: State, parentId: string) => {
return selectState(state).isLoadingByParentId[parentId]; return selectState(state).isLoadingByParentId[parentId];
}; };