import {compose} from 'recompose';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';


export const REMOVE_WIDGET = 'widget-base/REMOVE_WIDGET';
export function removeWidget() {
  return {
    type: REMOVE_WIDGET
  };
}

export default function withRemoveWidget() {
  return (BaseComponent) => compose(
    connect(
      null,
      (dispatch) => bindActionCreators({
        removeWidget
      }, dispatch)
    )
  )(BaseComponent);
}

import {compose} from 'recompose';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';


export const REMOVE_WIDGET = 'widget-base/REMOVE_WIDGET';
export function removeWidget() {
  return {
    type: REMOVE_WIDGET
  };
}

export default function withRemoveWidget() {
  return (BaseComponent) => compose(
    connect(
      (state) => state,
      (dispatch) => bindActionCreators({
        removeWidget
      }, dispatch)
    )
  )(BaseComponent);
}

Fix missing props not being passed
fix(spark-widget-base): Fix missing props not being passed
