diff --git a/web/src/components/modals/SettingsView/About.tsx b/web/src/components/modals/SettingsView/About.tsx index 27397fb4..901a8b64 100644 --- a/web/src/components/modals/SettingsView/About.tsx +++ b/web/src/components/modals/SettingsView/About.tsx @@ -2,14 +2,34 @@ import { Typography } from 'antd'; import React from 'react'; import { version } from 'tailchat-shared'; import logoUrl from '@assets/images/logo.svg'; +import { Icon } from '@iconify/react'; -const { Paragraph, Text } = Typography; +const { Paragraph, Text, Link } = Typography; + +const LogoLink: React.FC<{ + src: string; + icon: React.ReactNode | string; +}> = React.memo((props) => { + const { src, icon } = props; + + return ( + + {typeof icon === 'string' ? : icon} + + ); +}); +LogoLink.displayName = 'LogoLink'; export const SettingsAbout: React.FC = React.memo(() => { return (
{ 当前版本: {version} + +
+ + + + + } + /> + + + +
+ + + 开源地址:{' '} + + https://github.com/msgbyte/tailchat + +
); });