Add a button to open proxiwash in the browser #14

已合併
vergnet 2021-07-06 19:01:12 +02:00:btn-proxiwash 合併了 4 個提交至 master
只顯示提交 b127cca068 的變更 - 顯示所有提交

查看文件

@ -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