Wire up ui to real blocks api data
This commit is contained in:
parent
a56d2dfeb1
commit
a817cc7cb4
6 changed files with 40 additions and 3 deletions
|
@ -10,8 +10,8 @@ import withLoadMore from '../../hocs/with_load_more/with_load_more'
|
|||
|
||||
const BlockListWithLoadMore = withLoadMore(
|
||||
UserList,
|
||||
(props, $store) => $store.dispatch('addFriends', $store.state.users.currentUser.id),
|
||||
(props, $store) => get($store.getters.userById($store.state.users.currentUser.id), 'friends', [])
|
||||
(props, $store) => $store.dispatch('fetchBlocks'),
|
||||
(props, $store) => get($store.state.users.currentUser, 'blocks', [])
|
||||
)
|
||||
|
||||
const UserSettings = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue