vbea %!s(int64=2) %!d(string=hai) anos
pai
achega
532af350ea
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      Strides-APP/app/pages/home/maps/BottomSiteInfo.js

+ 7 - 2
Strides-APP/app/pages/home/maps/BottomSiteInfo.js

@@ -12,7 +12,12 @@ import ConnectType from '../../search/ConnectType';
 import app from '../../../../app.json';
 import TextView from '../../../components/TextView';
 
-export default BottomSiteInfo = ({stationInfo = {}, onFavorite, onClose}) => {
+export default BottomSiteInfo = ({
+  stationInfo = {},
+  onFavorite,
+  onClose,
+  style=styles.stationBarView
+}) => {
   const getAvailable = (type) => {
     const all = stationInfo.allConnector;
     if (all) {
@@ -57,7 +62,7 @@ export default BottomSiteInfo = ({stationInfo = {}, onFavorite, onClose}) => {
   if (stationInfo.id) {
     return (
       <Pressable
-        style={({pressed}) => [styles.stationBarView, pressed ? styles.stationBarPresed : {}]}
+        style={({pressed}) => [style, pressed ? styles.stationBarPresed : {}]}
         onPress={() => toChargePage()}>
         <View style={ui.flexcw}>
           <TextView