forked from vergnet/application-amicale
Improved proximo sort menu
This commit is contained in:
parent
47fd8b7474
commit
00e7da4bd2
1 changed files with 4 additions and 32 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue