perf: document icon and language select (#299)

This commit is contained in:
Archer
2023-09-13 19:54:29 +08:00
committed by GitHub
parent ae4c479f37
commit eb2e383cc7
4 changed files with 57 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ import NextLink from 'next/link';
import Badge from '../Badge';
import Avatar from '../Avatar';
import MyIcon from '../Icon';
import Language from '../Language';
import { useTranslation } from 'next-i18next';
import { useGlobalStore } from '@/store/global';
import MyTooltip from '../MyTooltip';
@@ -167,8 +166,20 @@ const Navbar = ({ unread }: { unread: number }) => {
</Link>
</Box>
)}
<Language {...itemStyles} />
{feConfigs?.show_doc && (
<MyTooltip label={t('home.Docs')} placement={'right-end'}>
<Box
{...itemStyles}
mb={0}
color={'#9096a5'}
onClick={() => {
window.open(`https://doc.fastgpt.run/docs/intro`);
}}
>
<MyIcon name={'courseLight'} width={'26px'} height={'26px'} />
</Box>
</MyTooltip>
)}
{feConfigs?.show_git && (
<MyTooltip label={`Git Star: ${gitStar}`} placement={'right-end'}>
<Link