everything is ok

This commit is contained in:
Brice Zele 2020-05-19 14:37:39 +01:00
parent 4c8bb9043e
commit 52b1ed736c
2 changed files with 11 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -287,8 +287,8 @@ export default class SuperViseurGroupeHome extends BaseScreen {
backgroundColor: theme.primary, backgroundColor: theme.primary,
justifyContent: 'center', justifyContent: 'center',
marginRight: 10, marginRight: 10,
width: 150, width: 160,
marginTop: 35, marginTop: 5,
alignItems: 'center', alignItems: 'center',
borderRadius: 10, borderRadius: 10,
}}> }}>
@ -300,16 +300,17 @@ export default class SuperViseurGroupeHome extends BaseScreen {
<View style={{ <View style={{
width: 1, width: 1,
backgroundColor: Color.borderColor backgroundColor: Color.borderColor,
marginTop: -20
}} /> }} />
<View style={{ flex: 1, flexDirection: 'column' }}> <View style={{ flex: 1, flexDirection: 'column', marginTop: -15 }}>
<View <View
style={{ style={{
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
marginTop: -10
}}> }}>
<View <View
style={[ style={[
@ -325,7 +326,7 @@ export default class SuperViseurGroupeHome extends BaseScreen {
<Text style={[Typography.title3, Color.primaryColor], { marginBottom: 1 }}> <Text style={[Typography.title3, Color.primaryColor], { marginBottom: 1 }}>
{I18n.t('PRINCIPAL_ACCOUNT_TITLE')} {I18n.t('PRINCIPAL_ACCOUNT_TITLE')}
</Text> </Text>
<Text style={[Typography.body2]}>{thousandsSeparators(item.balance_princ)}</Text> <Text style={[Typography.body2]}>{item.balance_princ === null ? 0 : thousandsSeparators(item.balance_princ)}</Text>
</View> </View>
</View> </View>
@ -333,6 +334,7 @@ export default class SuperViseurGroupeHome extends BaseScreen {
style={{ style={{
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
marginTop: -10
}}> }}>
<View <View
style={[ style={[
@ -348,7 +350,7 @@ export default class SuperViseurGroupeHome extends BaseScreen {
<Text style={[Typography.title3, Color.primaryColor], { marginBottom: 1 }}> <Text style={[Typography.title3, Color.primaryColor], { marginBottom: 1 }}>
{I18n.t('COMMISSION_ACCOUNT_TITLE')} {I18n.t('COMMISSION_ACCOUNT_TITLE')}
</Text> </Text>
<Text style={Typography.body2}>{thousandsSeparators(item.balance_com)}</Text> <Text style={Typography.body2}>{item.balance_com === null ? 0 : thousandsSeparators(item.balance_com)}</Text>
</View> </View>
</View> </View>
</View> </View>