wudebin hai 2 meses
pai
achega
5ec247c4fe
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      Strides-APP/app/pages/chargingV2/DiscountView.js

+ 6 - 4
Strides-APP/app/pages/chargingV2/DiscountView.js

@@ -13,14 +13,15 @@ export default DiscountView = ({visible=false}) => {
         <Path
           fill={colorAccent}
           d="M28 0H0L40 40V12C40 5.37258 34.6274 -30 28 0Z" />
+      </Svg>
+      <View style={styles.cardDiscount}>
         <MaterialCommunityIcons
           name="brightness-percent"
           size={15}
-          color={"white"}
-          style={{top: 3, right: 3, position: 'absolute'}}
+          color={"#ffff"}
+          style={{top: 0, right: 0, position: 'absolute'}}
         />
-      </Svg>
-      <View style={styles.cardDiscount}></View>
+      </View>
     </>);
   } else {
     return <></>;
@@ -33,6 +34,7 @@ const styles = StyleSheet.create({
     left: 0,
     right: 0,
     bottom: 0,
+    zIndex: 2,
     borderWidth: 3,
     borderRadius: 10,
     position: 'absolute',