|
|
@@ -3,7 +3,7 @@
|
|
|
* @邠心vbe on 2023/06/20
|
|
|
*/
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
-import { View, Text, Image, StyleSheet, Pressable } from 'react-native';
|
|
|
+import { View, Image, StyleSheet, Pressable } from 'react-native';
|
|
|
import app from '../../../app.json';
|
|
|
import Button, { ElevationObject } from '../../components/Button';
|
|
|
import TextView from '../../components/TextView';
|
|
|
@@ -15,8 +15,7 @@ export default StepAuth = ({
|
|
|
status="",
|
|
|
currentPayment,
|
|
|
onStartCharge,
|
|
|
- chargeBoxId,
|
|
|
- connectorId=1,
|
|
|
+ connectorInfo={},
|
|
|
selectedVoucher={},
|
|
|
onPaymentMethodChanged
|
|
|
}) => {
|
|
|
@@ -87,7 +86,7 @@ export default StepAuth = ({
|
|
|
? <PaymentListV2
|
|
|
isSelect={isAuthentic}
|
|
|
payType={currentPayment}
|
|
|
- chargeBoxId={chargeBoxId}
|
|
|
+ chargeBoxId={connectorInfo.chargeBoxId}
|
|
|
onMethodChange={onPaymentMethodChanged}/>
|
|
|
: <PaymentList
|
|
|
isSelect={isAuthentic}
|
|
|
@@ -98,7 +97,7 @@ export default StepAuth = ({
|
|
|
{ app.v3.vouchers &&
|
|
|
<Pressable
|
|
|
style={styles.voucherLayout}
|
|
|
- onPress={() => isAuthentic && PagerUtil.toSelectVoucher(chargeBoxId, connectorId)}>
|
|
|
+ onPress={() => isAuthentic && PagerUtil.toSelectVoucher(connectorInfo.chargeBoxId, connectorInfo.connectorId)}>
|
|
|
<MaterialCommunityIcons
|
|
|
name="ticket-percent"
|
|
|
size={35}
|