@@ -13,28 +13,28 @@ export function pagination(view, list) {
1313 < View style = { { flexDirection : 'row' , alignSelf : 'center' , alignContent : 'center' } } >
1414 < SocialIcon
1515 type = 'fast-backward'
16- iconColor = { view [ 'hydra: previous' ] ? '#3faab4' : 'grey' }
17- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: first' ] ) ) }
18- disabled = { ! view [ 'hydra: previous' ] }
16+ iconColor = { view [ '{{hydraPrefix}} previous' ] ? '#3faab4' : 'grey' }
17+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} first' ] ) ) }
18+ disabled = { ! view [ '{{hydraPrefix}} previous' ] }
1919 />
2020 < SocialIcon
2121 type = 'backward'
22- iconColor = { view [ 'hydra: previous' ] ? '#3faab4' : 'grey' }
23- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: previous' ] ) ) }
24- disabled = { ! view [ 'hydra: previous' ] }
22+ iconColor = { view [ '{{hydraPrefix}} previous' ] ? '#3faab4' : 'grey' }
23+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} previous' ] ) ) }
24+ disabled = { ! view [ '{{hydraPrefix}} previous' ] }
2525 />
2626 < SocialIcon
2727 type = 'forward'
28- iconColor = { view [ 'hydra: next' ] ? '#3faab4' : 'grey' }
29- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: next' ] ) ) }
30- disabled = { ! view [ 'hydra: next' ] }
28+ iconColor = { view [ '{{hydraPrefix}} next' ] ? '#3faab4' : 'grey' }
29+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} next' ] ) ) }
30+ disabled = { ! view [ '{{hydraPrefix}} next' ] }
3131 />
3232
3333 < SocialIcon
3434 type = 'fast-forward'
35- iconColor = { view [ 'hydra: next' ] ? '#3faab4' : 'grey' }
36- disabled = { ! view [ 'hydra: next' ] }
37- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: last' ] ) ) }
35+ iconColor = { view [ '{{hydraPrefix}} next' ] ? '#3faab4' : 'grey' }
36+ disabled = { ! view [ '{{hydraPrefix}} next' ] }
37+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} last' ] ) ) }
3838 activityIndicatorStyle = { { backgroundColor :'red' } }
3939 />
4040 </ View >
@@ -45,4 +45,4 @@ export function delayRefresh() {
4545 setTimeout ( ( ) => {
4646 Actions . refresh ( { refresh : Math . random ( ) } ) ;
4747 } , 500 ) ;
48- }
48+ }
0 commit comments