Merge pull request #192 from esteemapp/bugfix/fill

Bugfix/fill
This commit is contained in:
Feruz M 2018-12-07 10:33:09 +02:00 committed by GitHub
commit 2a615a519b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 17 deletions

View File

@ -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,
},

View File

@ -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,
}) => (
<Fragment>
<TouchableOpacity onPress={() => onPress && onPress(value)}>
<View style={[styles.textWrapper, isPin && styles.isPin]}>
<View
style={[styles.textWrapper, isPin && styles.isPin, isPostCardTag && styles.isPostCardTag]}
>
<Text style={[styles.text]}>{value}</Text>
</View>
</TouchableOpacity>

View File

@ -5,7 +5,6 @@ import styles from './userListItemStyles';
const UserListItem = ({
avatar,
reputation,
rightText,
description,
username,
@ -20,10 +19,7 @@ const UserListItem = ({
<FastImage style={[styles.avatar]} source={{ uri: avatar }} />
</TouchableOpacity>
<View style={styles.userDescription}>
<Text style={styles.name}>
{username}
{reputation && <Text style={styles.reputation}>{reputation}</Text>}
</Text>
<Text style={styles.name}>{username}</Text>
{description && <Text style={styles.date}>{description}</Text>}
</View>
{isHasRightItem && (

View File

@ -77,7 +77,7 @@ class PostHeaderDescription extends Component {
</TouchableOpacity>
{tag && (
<TouchableOpacity onPress={() => tagOnPress && tagOnPress()}>
<Tag isPin value={tag} />
<Tag isPostCardTag isPin value={tag} />
</TouchableOpacity>
)}
<Text style={styles.date}>{date}</Text>

View File

@ -52,6 +52,7 @@ class SearchModalView extends Component {
placeholder={placeholder}
placeholderTextColor="#c1c5c7"
autoCapitalize="none"
autoFocus
/>
<IconButton
iconStyle={styles.closeIcon}

View File

@ -11,14 +11,13 @@ import styles from './votersDisplayStyles';
class VotersDisplayView extends PureComponent {
/* Props
* ------------------------------------------------
* @prop { type } name - Description....
*/
* ------------------------------------------------
* @prop { type } name - Description....
*/
// Component Functions
_renderItem = (item, index) => {
const { handleOnUserPress } = this.props;
const reputation = `(${item.reputation})`;
const value = `$ ${item.value}`;
const percent = `${item.percent}%`;
@ -28,7 +27,6 @@ class VotersDisplayView extends PureComponent {
avatar={item.avatar}
index={index}
username={item.voter}
reputation={reputation}
description={item.created}
isHasRightItem
isRightColor={item.is_down_vote}

View File

@ -99,7 +99,7 @@ class WalletDetailsView extends Component {
</GrayWrapper>
{walletData.showPowerDown && (
<WalletLineItem
text={`Next power down is in ${walletData.nextVestingWithdrawal} days`}
text={`Next power down is in ${walletData.nextVestingWithdrawal} day`}
textColor="#788187"
iconName="ios-information-circle-outline"
/>

View File

@ -27,7 +27,7 @@ class ApplicationScreen extends Component {
return (
<Fragment>
<StatusBar backgroundColor="blue" barStyle={barStyle} />
<StatusBar barStyle={barStyle} />
<IntlProvider locale={locale} messages={flattenMessages(messages[locale])}>
<ReduxNavigation />
</IntlProvider>

View File

@ -69,7 +69,7 @@ class ProfileScreen extends Component {
}
return (
<Fragment>
<Header selectedUser={user} isReverse={isReverseHeader} />
<Header key={user && user.username} selectedUser={user} isReverse={isReverseHeader} />
<View style={styles.container}>
{!isReady ? (
<ProfileSummaryPlaceHolder />