Skip to content

Commit

Permalink
Adds help link to settings (#711)
Browse files Browse the repository at this point in the history
Signed-off-by: Akiff Manji <akiff.manji@gmail.com>
  • Loading branch information
amanji authored Nov 15, 2022
1 parent eac7c01 commit 4448513
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from 'aries-bifold'
import React, { useEffect, useState, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { StatusBar } from 'react-native'
import { Linking, StatusBar } from 'react-native'
import SplashScreen from 'react-native-splash-screen'
import Toast from 'react-native-toast-message'

Expand All @@ -37,7 +37,22 @@ const App = () => {
const { t } = useTranslation()
const { navigate } = useNavigation()

const helpLink = 'https://www2.gov.bc.ca/gov/content/governments/government-id/bc-wallet/help'

const settings = [
{
header: {
title: t('Settings.Help'),
icon: 'help',
},
data: [
{
title: t('Settings.HelpUsingBCWallet'),
accessibilityLabeL: t('Settings.HelpUsingBCWallet'),
onPress: () => Linking.openURL(helpLink),
},
],
},
{
header: {
title: t('Settings.MoreInformation'),
Expand Down
1 change: 1 addition & 0 deletions app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const configuration: ConfigurationContext = {
record: Record,
indyLedgers: [],
settings: [],
developer: () => null,
}

export default { theme, localization, configuration }
2 changes: 1 addition & 1 deletion bifold

0 comments on commit 4448513

Please sign in to comment.