zengkunsen 4 месяцев назад
Родитель
Сommit
b045f7b98c
2 измененных файлов с 2 добавлено и 2 удалено
  1. BIN
      assets/CC_Logo.png
  2. 2 2
      component/chargingPage/noChargingOngoingPageComponent.tsx

BIN
assets/CC_Logo.png


+ 2 - 2
component/chargingPage/noChargingOngoingPageComponent.tsx

@@ -47,7 +47,7 @@ const NoChargingOngoingPageComponent = () => {
         }, []) // Add any missing dependencies here if needed
     );
 
-    const StationRow = ({ item, index }: { item: any, index: number }) => {
+    const StationRow = ({ item }: { item: any }) => {
         // const imageSource = stationImages[stationID] || require('../../assets/dummyStationPicture.png');
         console.log('image', item.image, item.stationName);
         let imgObj = null
@@ -75,7 +75,7 @@ const NoChargingOngoingPageComponent = () => {
                 }}
             >
                 <View className="flex flex-1 flex-row w-full ">
-                    <Image style={styles.image} source={imgObj} key={index} />
+                    <Image style={styles.image} source={imgObj} />
                     <View className="flex flex-col gap-2 mt-5 mr-2">
                         <Text
                             style={{