Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
chore: use landing page support url [SGW-3844] (#767)
Browse files Browse the repository at this point in the history
* chore: use landing page support url

* fix: lint
  • Loading branch information
dalsontws authored Nov 15, 2023
1 parent 15e05cc commit aa54ca8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/HelpModal/HelpModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { AppText } from "../Layout/AppText";
import { SafeAreaView } from "react-native-safe-area-context";
import { useTranslate } from "../../hooks/useTranslate/useTranslate";

const BASE_URL = "https://supplyallyhelp.zendesk.com/hc/en-us";
const FEEDBACK_URL = BASE_URL + "/requests/new";
const SUPPORT_URL = "https://www.supplyally.gov.sg/faqs/supportrelated/";

const styles = StyleSheet.create({
bar: {
Expand Down Expand Up @@ -88,7 +87,7 @@ export const HelpModal: FunctionComponent<{

const onPressAskQuestion = (): void => {
if (webViewRef.current) {
const redirectTo = `window.location = "${FEEDBACK_URL}"`;
const redirectTo = `window.location = "${SUPPORT_URL}"`;
webViewRef.current.injectJavaScript(redirectTo);
}
};
Expand Down Expand Up @@ -142,7 +141,7 @@ export const HelpModal: FunctionComponent<{
</View>
<WebView
ref={webViewRef}
source={{ uri: BASE_URL }}
source={{ uri: SUPPORT_URL }}
onNavigationStateChange={onNavigationStateChange}
/>
<View style={[styles.bar, styles.bottomBar]}>
Expand Down

0 comments on commit aa54ca8

Please sign in to comment.