Skip to content
Snippets Groups Projects
Select Git revision
  • 477a6464913ecc4c0c34a48c012cc3426d8e26d4
  • master default protected
  • multiprocessing
  • experiment/clara
  • experiment/spec2B-poc
  • experiment/qivalio-poc
  • experiment/ertms
  • MAY-2023
  • FEB-2023
  • EGC-2023
  • 0.2.1
  • v0.2.0
  • v0.1.2
13 results

property_class_classifier.py

Blame
  • WindowTopBar.js 1010 B
    import { compose } from 'redux';
    import { connect } from 'react-redux';
    import { withNamespaces } from 'react-i18next';
    import * as actions from '../state/actions';
    import miradorWithPlugins from '../lib/miradorWithPlugins';
    import { getWindowManifest, getManifestTitle } from '../state/selectors';
    import WindowTopBar from '../components/WindowTopBar';
    
    /** mapStateToProps */
    const mapStateToProps = (state, { windowId }) => ({
      manifestTitle: getManifestTitle(getWindowManifest(state, windowId)),
    });
    
    /**
     * mapDispatchToProps - used to hook up connect to action creators
     * @memberof ManifestListItem
     * @private
     */
    const mapDispatchToProps = (dispatch, { windowId }) => ({
      removeWindow: () => dispatch(actions.removeWindow(windowId)),
      toggleWindowSideBar: () => dispatch(actions.toggleWindowSideBar(windowId)),
    });
    
    const enhance = compose(
      connect(mapStateToProps, mapDispatchToProps),
      miradorWithPlugins,
      withNamespaces(),
      // further HOC go here
    );
    
    export default enhance(WindowTopBar);