mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 04:34:55 -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 }) => (
|
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}
|
{children}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { List } from 'immutable';
|
||||||
import FoodItemRecord from '../records/FoodItemRecord';
|
import FoodItemRecord from '../records/FoodItemRecord';
|
||||||
import typeof PlaceRecord from '../records/PlaceRecord';
|
import typeof PlaceRecord from '../records/PlaceRecord';
|
||||||
import { Link } from 'react-router-native';
|
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 { routeWithTitle } from '../helpers/RouteHelpers';
|
||||||
import { getCategories } from '../helpers/CategoryHelpers';
|
import { getCategories } from '../helpers/CategoryHelpers';
|
||||||
import { type Map } from 'immutable';
|
import { type Map } from 'immutable';
|
||||||
|
|
@ -47,13 +47,15 @@ export default pure(({ place, foodItems }: PlaceTileProps) => {
|
||||||
to={routeWithTitle(`/place/${place.id || ''}`, place.name)}
|
to={routeWithTitle(`/place/${place.id || ''}`, place.name)}
|
||||||
underlayColor={theme.itemTile.pressHighlightColor}
|
underlayColor={theme.itemTile.pressHighlightColor}
|
||||||
>
|
>
|
||||||
<View style={{ height: 70, flexDirection: 'row', backgroundColor: 'white' }}>
|
<View>
|
||||||
<Thumbnail thumb={place.thumb} />
|
<TileBox>
|
||||||
<View style={{ paddingTop: 5 }}>
|
<Thumbnail thumb={place.thumb} />
|
||||||
<StrongText>{`${place.name} - ${distance} mi`}</StrongText>
|
<View>
|
||||||
<SubText>{getCategoriesText(foodItems)}</SubText>
|
<StrongText>{`${place.name} - ${distance} mi`}</StrongText>
|
||||||
<SubText>{getHoursText(place.hours)}</SubText>
|
<SubText>{getCategoriesText(foodItems)}</SubText>
|
||||||
</View>
|
<SubText>{getHoursText(place.hours)}</SubText>
|
||||||
|
</View>
|
||||||
|
</TileBox>
|
||||||
</View>
|
</View>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -47,12 +47,14 @@ export default {
|
||||||
},
|
},
|
||||||
itemTile: {
|
itemTile: {
|
||||||
thumbnailSize: 50,
|
thumbnailSize: 50,
|
||||||
thumbnailColor: COLOR.grey500,
|
thumbnailColor: COLOR.grey400,
|
||||||
itemNameStyle: {
|
itemNameStyle: {
|
||||||
|
fontSize: 16,
|
||||||
color: COLOR.black,
|
color: COLOR.black,
|
||||||
},
|
},
|
||||||
itemPlaceStyle: {
|
itemPlaceStyle: {
|
||||||
color: COLOR.grey500,
|
color: COLOR.grey700,
|
||||||
|
paddingTop: 3,
|
||||||
},
|
},
|
||||||
availableCountStyle: {
|
availableCountStyle: {
|
||||||
fontSize: 25,
|
fontSize: 25,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue