Complete functionality of BlockCard
This commit is contained in:
parent
0220d3d304
commit
52913d8f87
5 changed files with 39 additions and 6 deletions
|
@ -9,7 +9,7 @@ import BlockCard from '../block_card/block_card.vue'
|
|||
import withLoadMore from '../../hocs/with_load_more/with_load_more'
|
||||
import withList from '../../hocs/with_list/with_list'
|
||||
|
||||
const BlockList = withList(BlockCard, entry => ({ user: entry }))
|
||||
const BlockList = withList(BlockCard, entry => ({ userId: entry.id }))
|
||||
const BlockListWithLoadMore = withLoadMore(
|
||||
BlockList,
|
||||
(props, $store) => $store.dispatch('fetchBlocks'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue