diff --git a/js/components/IconButton.js b/js/components/IconButton.js
index a50bc13..91e014a 100644
--- a/js/components/IconButton.js
+++ b/js/components/IconButton.js
@@ -4,13 +4,22 @@ import { Text, View, TouchableOpacity } from 'react-native';
import { pure } from 'recompose';
import { Icon } from 'react-native-material-ui';
-type Props = { glyph: string, text: string, route: string, onPress: Function, color?: string };
+type Props = {
+ glyph: string,
+ text: string,
+ route: string,
+ onPress: Function,
+ color?: string,
+ textStyle?: Object,
+};
-export default pure(({ glyph, text, color = 'grey', ...others }: Props) => (
+export default pure(({ glyph, text, color = 'grey', textStyle, ...others }: Props) => (
-
-
- {text}
+
+
+
+ {text}
+
));
diff --git a/js/pages/PlaceDetail.js b/js/pages/PlaceDetail.js
index 8536467..344d00d 100644
--- a/js/pages/PlaceDetail.js
+++ b/js/pages/PlaceDetail.js
@@ -1,7 +1,7 @@
// @flow
import React from 'react';
-import { View, Image, ScrollView, TouchableOpacity } from 'react-native';
-import theme from '../ui-theme';
+import { View, Text, Image, ScrollView } from 'react-native';
+import theme, { palette } from '../ui-theme';
import { compose, pure, withState, withHandlers, lifecycle } from 'recompose';
import typeof PlaceRecord from '../records/PlaceRecord';
import {
@@ -18,6 +18,8 @@ import typeof FoodItemRecord from '../records/FoodItemRecord';
import FoodItemTile from '../components/FoodItemTile';
import { openUrl } from '../helpers/linkHelpers';
import ActionsButton from '../components/ActionsButton';
+import { routeWithQuery } from '../helpers/RouteHelpers';
+import { Link } from 'react-router-native';
const { placeDetails: style } = theme;
@@ -62,6 +64,15 @@ const PlaceDetail = (props: Props) => {
)}
+
+
+
{
paddingTop: 5,
paddingBottom: 10,
}}>
-
-
- {place.address}
-
-
{
/>
-
+
Products
{!!foodItems &&
foodItems.map(foodItem => (
))}
+ {!foodItems ||
+ (!foodItems.size && (
+
+
+ No products yet, add a new one.
+
+
+ ))}