Skip to content

Commit

Permalink
Fix: add help link in footer (#2822)
Browse files Browse the repository at this point in the history
* Fix: add help link in footer

* External link
  • Loading branch information
katspaugh authored Nov 20, 2023
1 parent d019012 commit 82b0848
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/common/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ReactElement, ReactNode } from 'react'
import { Typography } from '@mui/material'
import { SvgIcon, Typography } from '@mui/material'
import GitHubIcon from '@mui/icons-material/GitHub'
import Link from 'next/link'
import { useRouter } from 'next/router'
import css from './styles.module.css'
Expand All @@ -8,7 +9,7 @@ import packageJson from '../../../../package.json'
import AppstoreButton from '../AppStoreButton'
import ExternalLink from '../ExternalLink'
import MUILink from '@mui/material/Link'
import { IS_DEV, IS_OFFICIAL_HOST } from '@/config/constants'
import { HELP_CENTER_URL, IS_DEV, IS_OFFICIAL_HOST } from '@/config/constants'

const footerPages = [
AppRoutes.welcome.index,
Expand Down Expand Up @@ -67,14 +68,19 @@ const Footer = (): ReactElement | null => {
<li>
<FooterLink href={getHref(AppRoutes.settings.index)}>Preferences</FooterLink>
</li>
<li>
<ExternalLink href={HELP_CENTER_URL} noIcon>
Help
</ExternalLink>
</li>
</>
) : (
<li>{'This is an unofficial distribution of Safe{Wallet}'}</li>
)}

<li>
<ExternalLink href={`${packageJson.homepage}/releases/tag/v${packageJson.version}`}>
v{packageJson.version}
<ExternalLink href={`${packageJson.homepage}/releases/tag/v${packageJson.version}`} noIcon>
<SvgIcon component={GitHubIcon} inheritViewBox fontSize="inherit" sx={{ mr: 0.5 }} /> v{packageJson.version}
</ExternalLink>
</li>
<li>
Expand Down

0 comments on commit 82b0848

Please sign in to comment.