mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 02:44:56 -06:00
Style changes
This commit is contained in:
parent
21044edbb8
commit
5f4add7d82
4 changed files with 15 additions and 11 deletions
BIN
captures/com.aretherecookies_2018.04.23_16.10.li
Normal file
BIN
captures/com.aretherecookies_2018.04.23_16.10.li
Normal file
Binary file not shown.
|
|
@ -42,7 +42,7 @@ export const SubText = ({ children, style = {} }: { children?: string, style?: O
|
|||
};
|
||||
|
||||
export const TileBox = ({ children, style = {} }: { children?: any, style?: Object }) => (
|
||||
<View style={{ height: 70, flexDirection: 'row', backgroundColor: 'white', alignItems: 'center', ...style }}>
|
||||
<View style={{ flexDirection: 'row', backgroundColor: 'white', alignItems: 'center', paddingTop: 15, paddingBottom: 15, ...style }}>
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { List } from 'immutable';
|
|||
import FoodItemRecord from '../records/FoodItemRecord';
|
||||
import typeof PlaceRecord from '../records/PlaceRecord';
|
||||
import { Link } from 'react-router-native';
|
||||
import { Thumbnail, StrongText, SubText } from './ItemTile';
|
||||
import { TileBox, Thumbnail, StrongText, SubText } from './ItemTile';
|
||||
import { routeWithTitle } from '../helpers/RouteHelpers';
|
||||
import { getCategories } from '../helpers/CategoryHelpers';
|
||||
import { type Map } from 'immutable';
|
||||
|
|
@ -47,13 +47,15 @@ export default pure(({ place, foodItems }: PlaceTileProps) => {
|
|||
to={routeWithTitle(`/place/${place.id || ''}`, place.name)}
|
||||
underlayColor={theme.itemTile.pressHighlightColor}
|
||||
>
|
||||
<View style={{ height: 70, flexDirection: 'row', backgroundColor: 'white' }}>
|
||||
<Thumbnail thumb={place.thumb} />
|
||||
<View style={{ paddingTop: 5 }}>
|
||||
<StrongText>{`${place.name} - ${distance} mi`}</StrongText>
|
||||
<SubText>{getCategoriesText(foodItems)}</SubText>
|
||||
<SubText>{getHoursText(place.hours)}</SubText>
|
||||
</View>
|
||||
<View>
|
||||
<TileBox>
|
||||
<Thumbnail thumb={place.thumb} />
|
||||
<View>
|
||||
<StrongText>{`${place.name} - ${distance} mi`}</StrongText>
|
||||
<SubText>{getCategoriesText(foodItems)}</SubText>
|
||||
<SubText>{getHoursText(place.hours)}</SubText>
|
||||
</View>
|
||||
</TileBox>
|
||||
</View>
|
||||
</Link>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -47,12 +47,14 @@ export default {
|
|||
},
|
||||
itemTile: {
|
||||
thumbnailSize: 50,
|
||||
thumbnailColor: COLOR.grey500,
|
||||
thumbnailColor: COLOR.grey400,
|
||||
itemNameStyle: {
|
||||
fontSize: 16,
|
||||
color: COLOR.black,
|
||||
},
|
||||
itemPlaceStyle: {
|
||||
color: COLOR.grey500,
|
||||
color: COLOR.grey700,
|
||||
paddingTop: 3,
|
||||
},
|
||||
availableCountStyle: {
|
||||
fontSize: 25,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue