Add a button to open the proxiwash website in the default browser
这个提交包含在:
父节点
06dc9966ec
当前提交
b127cca068
共有 1 个文件被更改,包括 7 次插入 和 1 次删除
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
import React, { useLayoutEffect, useRef, useState } from 'react';
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
|
Linking,
|
||||||
SectionListData,
|
SectionListData,
|
||||||
SectionListRenderItemInfo,
|
SectionListRenderItemInfo,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
|
|
@ -153,6 +154,11 @@ function ProxiwashScreen() {
|
||||||
navigation.setOptions({
|
navigation.setOptions({
|
||||||
headerRight: () => (
|
headerRight: () => (
|
||||||
<MaterialHeaderButtons>
|
<MaterialHeaderButtons>
|
||||||
|
<Item
|
||||||
|
title={'web'}
|
||||||
|
iconName={'information'}
|
||||||
|
onPress={() => Linking.openURL(ProxiwashConstants[selectedWash].webPageUrl)}
|
||||||
|
/>
|
||||||
<Item
|
<Item
|
||||||
title={'information'}
|
title={'information'}
|
||||||
iconName={'information'}
|
iconName={'information'}
|
||||||
|
|
@ -161,7 +167,7 @@ function ProxiwashScreen() {
|
||||||
</MaterialHeaderButtons>
|
</MaterialHeaderButtons>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
}, [navigation]);
|
}, [navigation, selectedWash]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback used when the user clicks on enable notifications for a machine
|
* Callback used when the user clicks on enable notifications for a machine
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用