Skip to content

Commit

Permalink
[YOMO-223] faq missing (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored May 27, 2022
1 parent 0db8b9f commit 05b114b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions legacy/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"menu.settings": "Settings",
"menu.supportTitle": "Any questions?",
"menu.supportLink": "Ask our support team",
"menu.knowledgeBase": "Knowledge base",
"components.common.errormodal.hideError": "Hide error message",
"components.common.errormodal.showError": "Show error message",
"components.common.fingerprintscreenbase.welcomeMessage": "Welcome Back",
Expand Down
15 changes: 15 additions & 0 deletions src/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ export const Menu = () => {
/>
<HR />

<KnowledgeBase //
label={strings.knowledgeBase}
onPress={navigateTo.knowledgeBase}
left={<Icon.Info size={24} color="#6B7384" />}
/>
<HR />

<Spacer fill />

<SupportLink />
Expand Down Expand Up @@ -108,6 +115,7 @@ const HR = () => {

const AllWallets = Item
const Settings = Item
const KnowledgeBase = Item
const Catalyst = ({label, left, onPress}: {label: string; left: React.ReactElement; onPress: () => void}) => {
const tokenBalance = useSelector(tokenBalanceSelector)
const sufficientFunds = tokenBalance.getDefault().gte(CONFIG.CATALYST.MIN_ADA)
Expand All @@ -131,6 +139,7 @@ const Catalyst = ({label, left, onPress}: {label: string; left: React.ReactEleme
}

const SUPPORT_TICKET_LINK = 'https://emurgohelpdesk.zendesk.com/hc/en-us/requests/new?ticket_form_id=360013330335'
const KNOWLEDGE_BASE_LINK = 'https://emurgohelpdesk.zendesk.com/hc/en-us/categories/4412619927695-Yoroi'

const useNavigateTo = () => {
const {navigation, navigateToSettings} = useWalletNavigation()
Expand All @@ -146,6 +155,7 @@ const useNavigateTo = () => {
}),
settings: () => navigateToSettings(),
support: () => Linking.openURL(SUPPORT_TICKET_LINK),
knowledgeBase: () => Linking.openURL(KNOWLEDGE_BASE_LINK),
}
}

Expand All @@ -158,6 +168,7 @@ const useStrings = () => {
settings: intl.formatMessage(messages.settings),
supportTitle: intl.formatMessage(messages.supportTitle),
supportLink: intl.formatMessage(messages.supportLink),
knowledgeBase: intl.formatMessage(messages.knowledgeBase),
menu: intl.formatMessage(messages.menu),
}
}
Expand All @@ -183,6 +194,10 @@ const messages = defineMessage({
id: 'menu.supportLink',
defaultMessage: '!!!Ask our support team',
},
knowledgeBase: {
id: 'menu.knowledgeBase',
defaultMessage: '!!!Knowledge base',
},
menu: {
id: 'menu',
defaultMessage: '!!!Menu',
Expand Down

0 comments on commit 05b114b

Please sign in to comment.