mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 09:44:55 -06:00
link place address to place details page
This commit is contained in:
parent
721d3d2deb
commit
958bc9877b
1 changed files with 15 additions and 8 deletions
|
|
@ -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={{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue