|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
import { asyncAwesomeAlert } from "../../utils/AsyncWrappers"; |
|
|
|
|
import {Linking} from "react-native"; |
|
|
|
|
|
|
|
|
|
const initialState = { |
|
|
|
|
loading: false, |
|
|
|
@ -43,6 +44,7 @@ export default function userFactor(state = initialState, action) { |
|
|
|
|
case "userFactor/delete": |
|
|
|
|
return { ...state, loading: false, error: null }; |
|
|
|
|
case "userFactor/payment": |
|
|
|
|
Linking.openURL(data); |
|
|
|
|
return { ...state, loading: false, error: null }; |
|
|
|
|
//vod
|
|
|
|
|
case "userFactor/myList": |
|
|
|
@ -51,7 +53,8 @@ export default function userFactor(state = initialState, action) { |
|
|
|
|
return { ...state, loading: false, info: data.factorInfo, error: null }; |
|
|
|
|
case "userFactor/deleteUserOffCode": |
|
|
|
|
return { ...state, loading: false, error: null }; |
|
|
|
|
case "userFactor/paymentVOD": |
|
|
|
|
case "userFactor/payment": |
|
|
|
|
console.log(data); |
|
|
|
|
return { ...state, loading: false, error: null, isVerified: false }; |
|
|
|
|
case "userFactor/verifyVOD": |
|
|
|
|
return { ...state, loading: false, error: null, isVerified: true }; |
|
|
|
|