From b127cca068ed7733972b010f46fc0747f0d89ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20LEBAN?= Date: Mon, 5 Jul 2021 13:09:22 +0200 Subject: [PATCH] Add a button to open the proxiwash website in the default browser --- src/screens/Proxiwash/ProxiwashScreen.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/Proxiwash/ProxiwashScreen.tsx b/src/screens/Proxiwash/ProxiwashScreen.tsx index f1b9c9c..7675645 100644 --- a/src/screens/Proxiwash/ProxiwashScreen.tsx +++ b/src/screens/Proxiwash/ProxiwashScreen.tsx @@ -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: () => ( + Linking.openURL(ProxiwashConstants[selectedWash].webPageUrl)} + /> ), }); - }, [navigation]); + }, [navigation, selectedWash]); /** * Callback used when the user clicks on enable notifications for a machine