From 454a57d12a3e79f4f91ea159a3f09a1b3ce13b06 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Thu, 26 Oct 2017 16:21:01 +0100 Subject: [PATCH] fix(ui): Fix entity-info styling --- src/components/entity-info.component.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/entity-info.component.js b/src/components/entity-info.component.js index 5c7ed9f2f..ad99afc0b 100644 --- a/src/components/entity-info.component.js +++ b/src/components/entity-info.component.js @@ -22,9 +22,17 @@ const StyledListItem = styled(ListItem).attrs({ subtitleStyle: { color: colors.greyDark, ...fonts.fontPrimary, + fontWeight: 'normal', }, - underlayColor: props => (props.unknown ? null : colors.greyLight), - hideChevron: props => props.unknown, + wrapperStyle: { + borderBottomColor: colors.greyLight, + borderBottomWidth: 1, + padding: 10, + marginLeft: 0, + }, + underlayColor: props => (props.transparentChevron ? null : colors.greyLight), + chevronColor: props => + props.transparentChevron ? colors.transparent : undefined, })``; const getBlogLink = url => @@ -74,7 +82,7 @@ export const EntityInfo = ({ entity, orgs, locale, navigation }: Props) => { }} subtitle={entity.company} onPress={() => navigateToCompany(entity.company, orgs, navigation)} - unknown={companyInOrgs(entity.company, orgs)} + transparentChevron={!companyInOrgs(entity.company, orgs)} /> )}