|
|
@ -10,21 +10,19 @@ import MuteCard from '../mute_card/mute_card.vue'
|
|
|
|
import withSubscription from '../../hocs/with_subscription/with_subscription'
|
|
|
|
import withSubscription from '../../hocs/with_subscription/with_subscription'
|
|
|
|
import withList from '../../hocs/with_list/with_list'
|
|
|
|
import withList from '../../hocs/with_list/with_list'
|
|
|
|
|
|
|
|
|
|
|
|
const BlockList = withList(BlockCard, userId => ({ userId }))
|
|
|
|
const BlockList = withList({ getEntryProps: userId => ({ userId }) })(BlockCard)
|
|
|
|
const BlockListWithSubscription = withSubscription(
|
|
|
|
const BlockListWithSubscription = withSubscription({
|
|
|
|
BlockList,
|
|
|
|
fetch: (props, $store) => $store.dispatch('fetchBlocks'),
|
|
|
|
(props, $store) => $store.dispatch('fetchBlocks'),
|
|
|
|
select: (props, $store) => get($store.state.users.currentUser, 'blockIds', []),
|
|
|
|
(props, $store) => get($store.state.users.currentUser, 'blockIds', []),
|
|
|
|
contentPropName: 'entries'
|
|
|
|
'entries'
|
|
|
|
})(BlockList)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const MuteList = withList(MuteCard, userId => ({ userId }))
|
|
|
|
const MuteList = withList({ getEntryProps: userId => ({ userId }) })(MuteCard)
|
|
|
|
const MuteListWithSubscription = withSubscription(
|
|
|
|
const MuteListWithSubscription = withSubscription({
|
|
|
|
MuteList,
|
|
|
|
fetch: (props, $store) => $store.dispatch('fetchMutes'),
|
|
|
|
(props, $store) => $store.dispatch('fetchMutes'),
|
|
|
|
select: (props, $store) => get($store.state.users.currentUser, 'muteIds', []),
|
|
|
|
(props, $store) => get($store.state.users.currentUser, 'muteIds', []),
|
|
|
|
contentPropName: 'entries'
|
|
|
|
'entries'
|
|
|
|
})(MuteList)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const UserSettings = {
|
|
|
|
const UserSettings = {
|
|
|
|
data () {
|
|
|
|
data () {
|
|
|
|