Skip to content

Commit

Permalink
feat: help centre article link placeholder (#2557)
Browse files Browse the repository at this point in the history
* feat: help centre article link placeholder

* fix: add article link
  • Loading branch information
iamacook authored Oct 2, 2023
1 parent 9378aa7 commit beac185
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/settings/PushNotifications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ import { useNotificationRegistrations } from './hooks/useNotificationRegistratio
import { useNotificationPreferences } from './hooks/useNotificationPreferences'
import { GlobalPushNotifications } from './GlobalPushNotifications'
import useIsSafeOwner from '@/hooks/useIsSafeOwner'
import { IS_DEV } from '@/config/constants'
import { HelpCenterArticle, IS_DEV } from '@/config/constants'
import { trackEvent } from '@/services/analytics'
import { PUSH_NOTIFICATION_EVENTS } from '@/services/analytics/events/push-notifications'
import { AppRoutes } from '@/config/routes'
import CheckWallet from '@/components/common/CheckWallet'
import { useIsMac } from '@/hooks/useIsMac'
import useOnboard from '@/hooks/wallets/useOnboard'
import { assertWalletChain } from '@/services/tx/tx-sender/sdk'
import ExternalLink from '@/components/common/ExternalLink'

import css from './styles.module.css'

Expand Down Expand Up @@ -106,7 +107,8 @@ export const PushNotifications = (): ReactElement => {
<Grid container gap={2.5} flexDirection="column">
<Typography>
Enable push notifications for {safeLoaded ? 'this Safe Account' : 'your Safe Accounts'} in your browser
with your signature. You will need to enable them again if you clear your browser cache.
with your signature. You will need to enable them again if you clear your browser cache. Learn more
about push notifications <ExternalLink href={HelpCenterArticle.PUSH_NOTIFICATIONS}>here</ExternalLink>
</Typography>

{shouldShowMacHelper && (
Expand Down
1 change: 1 addition & 0 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const HelpCenterArticle = {
TRANSACTION_GUARD: `${HELP_CENTER_URL}/en/articles/40809-what-is-a-transaction-guard`,
UNEXPECTED_DELEGATE_CALL: `${HELP_CENTER_URL}/en/articles/40794-why-do-i-see-an-unexpected-delegate-call-warning-in-my-transaction`,
DELEGATES: `${HELP_CENTER_URL}/en/articles/40799-what-is-a-delegate-key`,
PUSH_NOTIFICATIONS: `${HELP_CENTER_URL}/en/articles/99197-how-to-start-receiving-web-push-notifications-in-the-web-wallet`,
} as const

// Social
Expand Down

0 comments on commit beac185

Please sign in to comment.