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