From c1a56240517d7e5d2d187bc8c3af57b5e7aff400 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 6 Dec 2018 18:21:52 +0300 Subject: [PATCH] bugfix #178 --- src/components/basicUIElements/view/tag/tagStyles.js | 5 ++++- src/components/basicUIElements/view/tag/tagView.js | 8 ++++++-- .../headerDescription/view/postHeaderDescription.js | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/basicUIElements/view/tag/tagStyles.js b/src/components/basicUIElements/view/tag/tagStyles.js index 61b8dcadd..f5859850b 100644 --- a/src/components/basicUIElements/view/tag/tagStyles.js +++ b/src/components/basicUIElements/view/tag/tagStyles.js @@ -8,11 +8,14 @@ export default EStyleSheet.create({ isPin: { backgroundColor: '$primaryBlue', }, + isPostCardTag: { + backgroundColor: '$iconColor', + }, textWrapper: { paddingHorizontal: 10, justifyContent: 'center', marginRight: 8, - height: 15, + height: 20, backgroundColor: '$iconColor', borderRadius: 50, }, diff --git a/src/components/basicUIElements/view/tag/tagView.js b/src/components/basicUIElements/view/tag/tagView.js index 2aff6106e..53fe998a9 100644 --- a/src/components/basicUIElements/view/tag/tagView.js +++ b/src/components/basicUIElements/view/tag/tagView.js @@ -2,10 +2,14 @@ import React, { Fragment } from 'react'; import { Text, View, TouchableOpacity } from 'react-native'; import styles from './tagStyles'; -const Tag = ({ onPress, isPin, value }) => ( +const Tag = ({ + onPress, isPin, value, isPostCardTag, +}) => ( onPress && onPress(value)}> - + {value} diff --git a/src/components/postElements/headerDescription/view/postHeaderDescription.js b/src/components/postElements/headerDescription/view/postHeaderDescription.js index ae0754cf1..ffe264b40 100644 --- a/src/components/postElements/headerDescription/view/postHeaderDescription.js +++ b/src/components/postElements/headerDescription/view/postHeaderDescription.js @@ -77,7 +77,7 @@ class PostHeaderDescription extends Component { {tag && ( tagOnPress && tagOnPress()}> - + )} {date}