2021-10-26 18:19:13 +00:00
|
|
|
/**
|
|
|
|
* Project YooLearn
|
|
|
|
* File skills.selector
|
|
|
|
* Path app/redux/skills
|
|
|
|
* Created by BRICE ZELE
|
|
|
|
* Date: 13/09/2021
|
|
|
|
*/
|
|
|
|
import {createSelector} from "reselect";
|
|
|
|
|
|
|
|
const selectInsuranceListReducer = (state) => state.insuranceList;
|
|
|
|
const selectSubscribeInsuranceReducer = (state) => state.subscribeInsurance;
|
|
|
|
const selectInsurancePrimeAmountReducer = (state) => state.insurancePrimeAmount;
|
|
|
|
const selectUploadInsuranceImagesReducerReducer = (state) => state.uploadInsuranceImagesReducer;
|
2021-11-11 11:43:33 +00:00
|
|
|
const selectGetSubscriptionListReducerReducer = (state) => state.subscriptionList;
|
|
|
|
const selectActivatePaySubscriptionReducer = (state) => state.activatePaySubscription;
|
|
|
|
const selectAddBeneficiaryToSubscriptionReducer = (state) => state.addBeneficiaryToSubscription;
|
2021-11-22 18:20:54 +00:00
|
|
|
const selectGetUserByIdQRCodeReducer = (state) => state.getUserByIdQRCodeReducer;
|
|
|
|
const selectGetUserByNameOrNumberReducer = (state) => state.getUserByNameOrNumberReducer;
|
2021-10-26 18:19:13 +00:00
|
|
|
|
|
|
|
export const selectInsuranceList = createSelector(
|
|
|
|
[selectInsuranceListReducer],
|
|
|
|
(insuranceList) => insuranceList
|
|
|
|
);
|
|
|
|
|
|
|
|
export const selectSubscribeInsurance = createSelector(
|
|
|
|
[selectSubscribeInsuranceReducer],
|
|
|
|
(subscribeInsurance) => subscribeInsurance
|
|
|
|
);
|
|
|
|
|
|
|
|
export const selectInsurancePrimeAmount = createSelector(
|
|
|
|
[selectInsurancePrimeAmountReducer],
|
|
|
|
(insurancePrimeAmount) => insurancePrimeAmount
|
|
|
|
);
|
|
|
|
|
|
|
|
export const selectUploadInsuranceImages = createSelector(
|
|
|
|
[selectUploadInsuranceImagesReducerReducer],
|
|
|
|
(uploadInsuranceImagesReducer) => uploadInsuranceImagesReducer
|
|
|
|
);
|
2021-11-11 11:43:33 +00:00
|
|
|
|
|
|
|
export const selectSubscriptionList = createSelector(
|
|
|
|
[selectGetSubscriptionListReducerReducer],
|
|
|
|
(subscriptionList) => subscriptionList
|
|
|
|
);
|
|
|
|
|
|
|
|
export const selectAddBeneficiaryToSubscription = createSelector(
|
|
|
|
[selectAddBeneficiaryToSubscriptionReducer],
|
|
|
|
(addBeneficiaryToSubscription) => addBeneficiaryToSubscription
|
|
|
|
);
|
|
|
|
|
|
|
|
export const selectActivatePaySubscription = createSelector(
|
|
|
|
[selectActivatePaySubscriptionReducer],
|
|
|
|
(activatePaySubscription) => activatePaySubscription
|
|
|
|
);
|
2021-11-22 18:20:54 +00:00
|
|
|
|
|
|
|
export const selectGetUserByIdQRCode = createSelector(
|
|
|
|
[selectGetUserByIdQRCodeReducer],
|
|
|
|
(getUserByIdQRCode) => getUserByIdQRCode
|
|
|
|
);
|
|
|
|
export const selectGetUserByNameOrNumber = createSelector(
|
|
|
|
[selectGetUserByNameOrNumberReducer],
|
|
|
|
(getUserByNameOrNumber) => getUserByNameOrNumber
|
|
|
|
);
|