docs icon

This commit is contained in:
archer
2023-08-08 13:44:20 +08:00
parent d3aca33ba2
commit 6531af6c3a
5 changed files with 53 additions and 27 deletions

View File

@@ -98,6 +98,7 @@ const Navbar = ({ unread }: { unread: number }) => {
>
{/* logo */}
<Box
flex={'0 0 auto'}
mb={5}
border={'2px solid #fff'}
borderRadius={'50%'}
@@ -144,6 +145,7 @@ const Navbar = ({ unread }: { unread: number }) => {
</Box>
))}
</Box>
{unread > 0 && (
<Box>
<Link
@@ -159,6 +161,20 @@ const Navbar = ({ unread }: { unread: number }) => {
</Link>
</Box>
)}
<MyTooltip label={t('home.Docs')} placement={'right-end'}>
<Box
{...itemStyles}
mb={0}
color={'#9096a5'}
onClick={() => {
window.open(`https://doc.fastgpt.run/docs/intro`);
}}
>
<Badge count={unread}>
<MyIcon name={'courseLight'} width={'26px'} height={'26px'} />
</Badge>
</Box>
</MyTooltip>
<Language {...itemStyles} />
{feConfigs?.show_git && (
<MyTooltip label={`Git Star: ${gitStar}`} placement={'right-end'}>