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