Skip to content
Snippets Groups Projects
Unverified Commit f206fd76 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3153 from ProjectMirador/windowviewer

Clean up unused WindowViewer connections
parents eb278f01 6887e88c
No related branches found
No related tags found
No related merge requests found
import { compose } from 'redux'; import { compose } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins'; import { withPlugins } from '../extend/withPlugins';
import * as actions from '../state/actions';
import { WindowViewer } from '../components/WindowViewer'; import { WindowViewer } from '../components/WindowViewer';
/**
* mapStateToProps - to hook up connect
* @memberof WindowViewer
* @private
*/
const mapStateToProps = (state, { windowId }) => ({});
/**
* mapDispatchToProps - used to hook up connect to action creators
* @memberof WindowViewer
* @private
*/
const mapDispatchToProps = {
fetchAnnotation: actions.fetchAnnotation,
fetchInfoResponse: actions.fetchInfoResponse,
receiveAnnotation: actions.receiveAnnotation,
};
const enhance = compose( const enhance = compose(
connect(mapStateToProps, mapDispatchToProps),
withPlugins('WindowViewer'), withPlugins('WindowViewer'),
// further HOC go here // further HOC go here
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment