From 02cf84858727eca6bf99065bb54eb30e50092ea1 Mon Sep 17 00:00:00 2001
From: saml33
Date: Wed, 19 Jul 2023 13:04:22 +1000
Subject: [PATCH] add link to risks doc
---
components/SideNav.tsx | 10 ++++++++++
components/mobile/BottomBar.tsx | 9 ++++++++-
components/modals/TermsOfUseModal.tsx | 10 ++++++++++
components/modals/UserSetupModal.tsx | 10 ++++++++++
public/locales/en/common.json | 1 +
public/locales/es/common.json | 1 +
public/locales/ru/common.json | 1 +
public/locales/zh/common.json | 1 +
public/locales/zh_tw/common.json | 1 +
9 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/components/SideNav.tsx b/components/SideNav.tsx
index 52b8ba41..42c35fc5 100644
--- a/components/SideNav.tsx
+++ b/components/SideNav.tsx
@@ -15,6 +15,7 @@ import {
NewspaperIcon,
PlusCircleIcon,
ArchiveBoxArrowDownIcon,
+ ExclamationTriangleIcon,
// ClipboardDocumentIcon,
} from '@heroicons/react/20/solid'
import { useRouter } from 'next/router'
@@ -195,6 +196,15 @@ const SideNav = ({ collapsed }: { collapsed: boolean }) => {
isExternal
showTooltip={false}
/>
+ }
+ title={t('risks')}
+ pagePath="https://docs.mango.markets/mango-markets/risks"
+ hideIconBg
+ isExternal
+ showTooltip={false}
+ />
diff --git a/components/mobile/BottomBar.tsx b/components/mobile/BottomBar.tsx
index 1d2e66f8..4d04ac34 100644
--- a/components/mobile/BottomBar.tsx
+++ b/components/mobile/BottomBar.tsx
@@ -20,6 +20,7 @@ import {
ArchiveBoxArrowDownIcon,
// ClipboardDocumentIcon,
NewspaperIcon,
+ ExclamationTriangleIcon,
} from '@heroicons/react/20/solid'
import SolanaTps from '@components/SolanaTps'
import LeaderboardIcon from '@components/icons/LeaderboardIcon'
@@ -110,7 +111,7 @@ const MoreMenuPanel = ({
const { t } = useTranslation(['common', 'search'])
return (
@@ -178,6 +179,12 @@ const MoreMenuPanel = ({
icon={}
isExternal
/>
+ }
+ title={t('risks')}
+ path="https://docs.mango.markets/mango-markets/risks"
+ isExternal
+ />
)
diff --git a/components/modals/TermsOfUseModal.tsx b/components/modals/TermsOfUseModal.tsx
index f49b1692..06b9e0d3 100644
--- a/components/modals/TermsOfUseModal.tsx
+++ b/components/modals/TermsOfUseModal.tsx
@@ -22,6 +22,16 @@ const TermsOfUseModal = ({ isOpen, onClose }: ModalProps) => {
{t('terms-of-use')}
+ and
+
+ {t('risks')}
+
+