Wire up ui to real blocks api data

This commit is contained in:
taehoon 2019-02-13 12:05:23 -05:00
parent a56d2dfeb1
commit a817cc7cb4
6 changed files with 40 additions and 3 deletions

View file

@ -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 = {