Get rid of data direct dependency in the plugins

This commit is contained in:
Chi Vinh Le
2018-03-13 19:58:32 +01:00
parent 9ad92e38c0
commit 84f1003b2b
20 changed files with 172 additions and 39 deletions
@@ -31,9 +31,8 @@ const withViewingOptionsFragments = withFragments({
const enhance = compose(
connect(mapStateToProps, mapDispatchToProps),
withViewingOptionsFragments,
mapProps(({ root, asset, data, ...rest }) => ({
mapProps(({ root, asset, ...rest }) => ({
slotPassthrough: {
data,
root,
asset,
},