Rename some options and add comments to HOCs
This commit is contained in:
parent
339373b495
commit
6d4d705c51
4 changed files with 20 additions and 9 deletions
|
@ -15,7 +15,7 @@ const BlockList = compose(
|
|||
withSubscription({
|
||||
fetch: (props, $store) => $store.dispatch('fetchBlocks'),
|
||||
select: (props, $store) => get($store.state.users.currentUser, 'blockIds', []),
|
||||
contentPropName: 'entries'
|
||||
childPropName: 'entries'
|
||||
}),
|
||||
withList({ getEntryProps: userId => ({ userId }) })
|
||||
)(BlockCard)
|
||||
|
@ -24,7 +24,7 @@ const MuteList = compose(
|
|||
withSubscription({
|
||||
fetch: (props, $store) => $store.dispatch('fetchMutes'),
|
||||
select: (props, $store) => get($store.state.users.currentUser, 'muteIds', []),
|
||||
contentPropName: 'entries'
|
||||
childPropName: 'entries'
|
||||
}),
|
||||
withList({ getEntryProps: userId => ({ userId }) })
|
||||
)(MuteCard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue