forked from vergnet/application-amicale
		
	Add a button to open the proxiwash website in the default browser
This commit is contained in:
		
							parent
							
								
									06dc9966ec
								
							
						
					
					
						commit
						b127cca068
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -19,6 +19,7 @@ | |||
| 
 | ||||
| import React, { useLayoutEffect, useRef, useState } from 'react'; | ||||
| import { | ||||
|   Linking, | ||||
|   SectionListData, | ||||
|   SectionListRenderItemInfo, | ||||
|   StyleSheet, | ||||
|  | @ -153,6 +154,11 @@ function ProxiwashScreen() { | |||
|     navigation.setOptions({ | ||||
|       headerRight: () => ( | ||||
|         <MaterialHeaderButtons> | ||||
|           <Item | ||||
|             title={'web'} | ||||
|             iconName={'information'} | ||||
|             onPress={() => Linking.openURL(ProxiwashConstants[selectedWash].webPageUrl)} | ||||
|           /> | ||||
|           <Item | ||||
|             title={'information'} | ||||
|             iconName={'information'} | ||||
|  | @ -161,7 +167,7 @@ function ProxiwashScreen() { | |||
|         </MaterialHeaderButtons> | ||||
|       ), | ||||
|     }); | ||||
|   }, [navigation]); | ||||
|   }, [navigation, selectedWash]); | ||||
| 
 | ||||
|   /** | ||||
|    * Callback used when the user clicks on enable notifications for a machine | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue