Skip to content
Snippets Groups Projects
Select Git revision
  • 4e17d8d3313a1ef388fed894fd9847124b05fe18
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

postcss.config.js

Blame
  • AuthenticationLogout.js 1.35 KiB
    import { compose } from 'redux';
    import { connect } from 'react-redux';
    import { withTranslation } from 'react-i18next';
    import { withStyles } from '@material-ui/core';
    import { withPlugins } from '../extend/withPlugins';
    
    import {
      getCurrentCanvas,
      selectAuthStatus,
      selectCanvasAuthService,
      selectLogoutAuthService,
    } from '../state/selectors';
    import * as actions from '../state/actions';
    import { AuthenticationLogout } from '../components/AuthenticationLogout';
    
    /**
     * mapStateToProps - to hook up connect
     * @memberof App
     * @private
     */
    const mapStateToProps = (state, { windowId }) => {
      const canvasId = (getCurrentCanvas(state, { windowId }) || {}).id;
      const service = selectCanvasAuthService(state, { canvasId, windowId });
      const logoutService = selectLogoutAuthService(state, { canvasId, windowId });
      return {
        authServiceId: service && service.id,
        label: logoutService && logoutService.getLabel()[0].value,
        logoutServiceId: logoutService && logoutService.id,
        status: service && selectAuthStatus(state, service),
      };
    };
    
    const mapDispatchToProps = {
      resetAuthenticationState: actions.resetAuthenticationState,
    };
    
    const styles = {};
    
    const enhance = compose(
      connect(mapStateToProps, mapDispatchToProps),
      withStyles(styles),
      withTranslation(),
      withPlugins('AuthenticationLogout'),
    );
    
    export default enhance(AuthenticationLogout);