Merge pull request #778 from esteemapp/feature/epoint-design

fixed color for points and fixed percent for notificiatipn
This commit is contained in:
uğur erdal 2019-05-01 13:09:30 +03:00 committed by GitHub
commit 6325cbba7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class NotificationLineView extends PureComponent {
}); });
if (notification.weight) { if (notification.weight) {
const _percent = `${(notification.weight / 100).toFixed(0)}% `; const _percent = `${(notification.weight / 100).toFixed(2)}% `;
_title = _percent + _title; _title = _percent + _title;
} }

View File

@ -10,7 +10,7 @@ export default EStyleSheet.create({
fontWeight: 'bold', fontWeight: 'bold',
}, },
subText: { subText: {
color: '$tagColor', color: '$darkIconColor',
fontSize: 8, fontSize: 8,
justifyContent: 'center', justifyContent: 'center',
alignSelf: 'center', alignSelf: 'center',
@ -120,4 +120,7 @@ export default EStyleSheet.create({
overlay: { overlay: {
backgroundColor: '#403c4449', backgroundColor: '#403c4449',
}, },
popoverText: {
color: '$primaryDarkText',
},
}); });

View File

@ -128,7 +128,7 @@ class PointsView extends Component {
supportedOrientations={['portrait', 'landscape']} supportedOrientations={['portrait', 'landscape']}
> >
<View style={styles.popoverWrapper}> <View style={styles.popoverWrapper}>
<Text>{intl.formatMessage({ id: POINTS[item.type].descriptionKey })}</Text> <Text style={styles.popoverText}>{intl.formatMessage({ id: POINTS[item.type].descriptionKey })}</Text>
</View> </View>
</Popover> </Popover>
</View> </View>