# All files / src plugin.js

79.01% Statements 64/81
61.4% Branches 35/57
94.44% Functions 17/18
79.22% Lines 61/77

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    261x
    1x

    1x
    1x
    1x
    1x
    2x

    1x

    1x

    1x

    5x
     import React, { Component } from 'react';
    import { StoreConnector } from 'hadron-react-components';
    import Preferences from 'components/preferences';
    import store from 'stores';
    import actions from 'actions';

    class Plugin extends Component {
      static displayName = 'PreferencesPlugin';

      /**
       *I Connect the Plugin to the store and render.
       *
       * @returns {React.Component} The rendered component.
       */
      render() {
        return (
          <StoreConnector store={store}>
            <Preferences actions={actions} {...this.props} />
          </StoreConnector>
        );
      }
    }

    export default Plugin;
    export { Plugin };