Merge pull request #157 from blockworks-foundation/feedback-survey

add link to feedback survey
This commit is contained in:
saml33 2023-07-17 09:31:57 +10:00 committed by GitHub
commit 3f6b1908a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 37 additions and 10 deletions

View File

@ -15,6 +15,7 @@ import {
NewspaperIcon,
PlusCircleIcon,
ArchiveBoxArrowDownIcon,
ClipboardDocumentIcon,
} from '@heroicons/react/20/solid'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
@ -112,6 +113,13 @@ const SideNav = ({ collapsed }: { collapsed: boolean }) => {
title={t('stats')}
pagePath="/stats"
/>
<MenuItem
active={pathname === '/leaderboard'}
collapsed={collapsed}
icon={<LeaderboardIcon className="h-5 w-5" />}
title={t('leaderboard')}
pagePath="/leaderboard"
/>
<MenuItem
active={pathname === '/settings'}
collapsed={collapsed}
@ -124,15 +132,6 @@ const SideNav = ({ collapsed }: { collapsed: boolean }) => {
icon={<EllipsisHorizontalIcon className="h-5 w-5" />}
title={t('more')}
>
<MenuItem
active={pathname === '/leaderboard'}
collapsed={false}
icon={<LeaderboardIcon className="h-5 w-5" />}
title={t('leaderboard')}
pagePath="/leaderboard"
hideIconBg
showTooltip={false}
/>
<MenuItem
active={pathname === '/search'}
collapsed={false}
@ -178,6 +177,15 @@ const SideNav = ({ collapsed }: { collapsed: boolean }) => {
isExternal
showTooltip={false}
/>
<MenuItem
collapsed={false}
icon={<ClipboardDocumentIcon className="h-5 w-5" />}
title={t('feedback-survey')}
pagePath="https://forms.gle/JgV4w7SJ2kPH89mq7"
hideIconBg
isExternal
showTooltip={false}
/>
<MenuItem
collapsed={false}
icon={<NewspaperIcon className="h-5 w-5" />}

View File

@ -18,6 +18,8 @@ import {
BanknotesIcon,
PlusCircleIcon,
ArchiveBoxArrowDownIcon,
ClipboardDocumentIcon,
NewspaperIcon,
} from '@heroicons/react/20/solid'
import SolanaTps from '@components/SolanaTps'
import LeaderboardIcon from '@components/icons/LeaderboardIcon'
@ -108,7 +110,7 @@ const MoreMenuPanel = ({
const { t } = useTranslation(['common', 'search'])
return (
<div
className={`fixed bottom-0 z-30 h-[calc(100%-32px)] w-full overflow-hidden rounded-t-3xl bg-th-bkg-2 px-4 transition duration-300 ease-in-out ${
className={`fixed bottom-0 z-30 h-full w-full overflow-hidden rounded-t-3xl bg-th-bkg-2 px-4 transition duration-300 ease-in-out ${
showPanel ? 'translate-y-0' : 'translate-y-full'
}`}
>
@ -164,6 +166,18 @@ const MoreMenuPanel = ({
icon={<BuildingLibraryIcon className="h-5 w-5" />}
isExternal
/>
<MoreMenuItem
title={t('feedback-survey')}
path="https://forms.gle/JgV4w7SJ2kPH89mq7"
icon={<ClipboardDocumentIcon className="h-5 w-5" />}
isExternal
/>
<MoreMenuItem
title={t('terms-of-use')}
path="https://docs.mango.markets/legal"
icon={<NewspaperIcon className="h-5 w-5" />}
isExternal
/>
</div>
</div>
)

View File

@ -75,6 +75,7 @@
"edit-profile-image": "Edit Profile Image",
"explorer": "Explorer",
"fee": "Fee",
"feedback-survey": "Feedback Survey",
"fees": "Fees",
"free-collateral": "Free Collateral",
"get-started": "Get Started",

View File

@ -75,6 +75,7 @@
"edit-profile-image": "Edit Profile Image",
"explorer": "Explorer",
"fee": "Fee",
"feedback-survey": "Feedback Survey",
"fees": "Fees",
"free-collateral": "Free Collateral",
"get-started": "Get Started",

View File

@ -75,6 +75,7 @@
"edit-profile-image": "Edit Profile Image",
"explorer": "Explorer",
"fee": "Fee",
"feedback-survey": "Feedback Survey",
"fees": "Fees",
"free-collateral": "Free Collateral",
"get-started": "Get Started",

View File

@ -75,6 +75,7 @@
"edit-profile-image": "切换头像",
"explorer": "浏览器",
"fee": "费用",
"feedback-survey": "Feedback Survey",
"fees": "费用",
"free-collateral": "可用的质押品",
"funding": "资金费",

View File

@ -75,6 +75,7 @@
"edit-profile-image": "切換頭像",
"explorer": "瀏覽器",
"fee": "費用",
"feedback-survey": "Feedback Survey",
"fees": "費用",
"free-collateral": "可用的質押品",
"funding": "資金費",