...
 
Commits (2)
......@@ -492,6 +492,7 @@ exports[`notification component renders correctly for every type 5`] = `
some title
</Text>
</Text>
You have not been charged
</Text>
</View>
......
......@@ -52,6 +52,7 @@ exports[`renders correctly 1`] = `
some title
</Text>
</Text>
You have not been charged
</Text>
</View>
......
......@@ -35,14 +35,14 @@ export default class BoostPeerAcceptedView extends BoostGiftView {
}
getType() {
return (this.props.entity.params.type == 'pro') ? i18n.t('usd') : i18n.t('tokens');
return (this.props.entity.params.type === 'pro') ? i18n.t('usd') : i18n.t('tokens');
}
getAmount() {
if (this.props.entity.params.type == 'pro') {
if (this.props.entity.params.type === 'pro') {
return this.props.entity.params.bid;
} else {
return number(token(this.props.entity.params.bid, 18), 0, 3)
return number(token(this.props.entity.params.bid, 18), 0, 3);
}
}
}
\ No newline at end of file
}
......@@ -26,10 +26,9 @@ export default class BoostPeerRejectedView extends BoostPeerAcceptedView {
return (
<View style={styles.bodyContents}>
<Text onPress={() => this.navToBoostConsole({filter:'peer'})}>
<Text style={styles.bold} onPress={this.navToChannel}>@{entity.from.username}</Text> {i18n.t('notification.boostPeerRejected')} <Text style={styles.bold}>{amount} {type}</Text> {description}
{i18n.t('notification.notCharged')}
<Text style={styles.bold} onPress={this.navToChannel}>@{entity.from.username}</Text> {i18n.t('notification.boostPeerRejected')} <Text style={styles.bold}>{amount} {type}</Text> {description} {i18n.t('notification.notCharged')}
</Text>
</View>
)
);
}
}
\ No newline at end of file
}
......@@ -4,7 +4,7 @@ import React, {
import {
Text,
View
View,
} from 'react-native';
import BoostGiftView from './BoostGiftView';
......@@ -34,6 +34,6 @@ export default class BoostRejectedView extends BoostGiftView {
<View style={styles.bodyContents}>
<Text onPress={this.navToBoostConsole}>{i18n.to('notification.boostRejected', {reason}, {description})}</Text>
</View>
)
);
}
}
\ No newline at end of file
}