link place address to place details page

This commit is contained in:
Bart Akeley 2017-08-06 11:33:41 -05:00
parent 721d3d2deb
commit 958bc9877b

View file

@ -12,6 +12,8 @@ import { withPlaceForFoodItem } from '../enhancers/placeEnhancers';
import Carousel from 'react-native-looped-carousel';
import CountBadge from '../components/CountBadge';
import QuantityPicker from '../components/QuantityPicker';
import { routeWithTitle } from '../helpers/RouteHelpers';
import { Link } from 'react-router-native';
const { foodItemDetails: style } = theme;
@ -79,14 +81,19 @@ export class FoodItemDetail extends Component {
<CountBadge currentImage={this.state.currentImage + 1} totalCount={viewableImages.size} />
</View>
<View style={{ flex: 1, marginBottom: 10, ...contentTileStyle }}>
<View style={{ marginTop: 15 }}>
<StrongText>
{place.name}
</StrongText>
<SubText>
{place.address}
</SubText>
</View>
<Link
to={routeWithTitle(`/place/${place.id || ''}`, place.name)}
underlayColor={theme.itemTile.pressHighlightColor}
>
<View style={{ marginTop: 15 }}>
<StrongText>
{place.name}
</StrongText>
<SubText>
{place.address}
</SubText>
</View>
</Link>
</View>
<View
style={{