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