%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/static/js/containers/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/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);