Skip to content

Commit

Permalink
Add FAQ button in Help modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ar563 authored Sep 22, 2022
1 parent 1f34bb9 commit 8438a87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const MAX_SAT_INVOICE = 4294967;
export const GITHUB_REPO_URL = "https://github.com/hsjoberg/blixt-wallet";
export const HAMPUS_EMAIL = "mailto:hampus.sjoberg💩protonmail.com".replace("💩", "@");
export const TELEGRAM = "https://t.me/blixtwallet";
export const FAQ = "https://blixtwallet.github.io/faq";

export const PLATFORM = Platform.OS;

Expand Down
11 changes: 10 additions & 1 deletion src/windows/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Body, Card, Text, CardItem, H1, Toast, View, Button } from "native-base
import { useStoreState } from "../state/store";

import Blurmodal from "../components/BlurModal";
import { GITHUB_REPO_URL, HAMPUS_EMAIL, TELEGRAM } from "../utils/constants";
import { GITHUB_REPO_URL, HAMPUS_EMAIL, TELEGRAM, FAQ } from "../utils/constants";

import { useTranslation } from "react-i18next";
import { namespaces } from "../i18n/i18n.constants";
Expand All @@ -28,6 +28,10 @@ export default function SyncInfo({ route }: any) {
await Linking.openURL(TELEGRAM);
}

const onPressFAQ = async () => {
await Linking.openURL(FAQ);
}

return (
<Blurmodal>
<Card style={style.card}>
Expand Down Expand Up @@ -55,6 +59,9 @@ export default function SyncInfo({ route }: any) {
<Button style={style.actionBarButton} onPress={onPressEmail} small={true}>
<Text style={style.actionBarButtonText}>Email</Text>
</Button>
<Button style={style.actionBarButton} onPress={onPressFAQ} small={true}>
<Text style={style.actionBarButtonText}>FAQ</Text>
</Button>
</View>
</Body>
</CardItem>
Expand All @@ -78,9 +85,11 @@ const style = StyleSheet.create({
flexGrow: 1,
alignItems:"flex-end",
flexDirection: "row-reverse",
flexWrap: "wrap",
},
actionBarButton: {
marginLeft: 10,
marginTop: 10,
},
actionBarButtonText: {
fontSize: 9.75,
Expand Down

1 comment on commit 8438a87

@vercel
Copy link

@vercel vercel bot commented on 8438a87 Sep 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blixt-wallet – ./

blixt-wallet-hsjoberg.vercel.app
blixt-wallet-git-master-hsjoberg.vercel.app

Please sign in to comment.