Improved proximo sort menu

This commit is contained in:
Arnaud Vergnet 2020-04-12 17:14:14 +02:00
parent 47fd8b7474
commit 00e7da4bd2

View file

@ -227,38 +227,10 @@ class ProximoListScreen extends React.Component<Props, State> {
onValueChange={value => this.setSortMode(value)} onValueChange={value => this.setSortMode(value)}
value={this.state.currentSortMode} value={this.state.currentSortMode}
> >
<View style={{ <RadioButton.Item label={i18n.t('proximoScreen.sortPrice')} value={1}/>
flexDirection: 'row', <RadioButton.Item label={i18n.t('proximoScreen.sortPriceReverse')} value={2}/>
justifyContent: 'flex-start', <RadioButton.Item label={i18n.t('proximoScreen.sortName')} value={3}/>
alignItems: 'center' <RadioButton.Item label={i18n.t('proximoScreen.sortNameReverse')} value={4}/>
}}>
<RadioButton value={1}/>
<Text>{i18n.t('proximoScreen.sortPrice')}</Text>
</View>
<View style={{
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'center'
}}>
<RadioButton value={2}/>
<Text>{i18n.t('proximoScreen.sortPriceReverse')}</Text>
</View>
<View style={{
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'center'
}}>
<RadioButton value={3}/>
<Text>{i18n.t('proximoScreen.sortName')}</Text>
</View>
<View style={{
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'center'
}}>
<RadioButton value={4}/>
<Text>{i18n.t('proximoScreen.sortNameReverse')}</Text>
</View>
</RadioButton.Group> </RadioButton.Group>
</View> </View>
); );