diff --git a/src/components/Icon/icons/home.svg b/src/components/Icon/icons/home.svg new file mode 100644 index 000000000..c8a412051 --- /dev/null +++ b/src/components/Icon/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index a9ec920b6..b5467792f 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -5,7 +5,8 @@ import dynamic from 'next/dynamic'; const map = { model: dynamic(() => import('./icons/model.svg')), - share: dynamic(() => import('./icons/share.svg')) + share: dynamic(() => import('./icons/share.svg')), + home: dynamic(() => import('./icons/home.svg')) }; const MyIcon = ({ diff --git a/src/pages/chat/components/SlideBar.tsx b/src/pages/chat/components/SlideBar.tsx index a5b75d1fe..fa00161e3 100644 --- a/src/pages/chat/components/SlideBar.tsx +++ b/src/pages/chat/components/SlideBar.tsx @@ -107,6 +107,23 @@ const SlideBar = ({ ); + const RenderButton = ({ onClick, children }: { onClick: () => void; children: JSX.Element }) => ( + + + {children} + + + ); + return ( - - { - onOpenShare(); - onClose(); - }} - > + router.push('/')}> + <> + + 首页 + + + + { + onOpenShare(); + onClose(); + }} + > + <> - 分享对话 - - + 分享 + + {/* 分享提示modal */}