mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-17 04:07:29 +08:00
feat: add github link
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import {
|
||||
Clover,
|
||||
Film,
|
||||
Github,
|
||||
Home,
|
||||
Menu,
|
||||
MessageCircleHeart,
|
||||
@@ -165,6 +166,15 @@ const Sidebar = ({ onToggle, activePath = '/' }: SidebarProps) => {
|
||||
{ icon: VenetianMask, label: '日漫', href: '/douban?type=tv&tag=日本动画' },
|
||||
];
|
||||
|
||||
const { siteName } = useSite();
|
||||
if (siteName !== 'MoonTV') {
|
||||
menuItems.push({
|
||||
icon: Github,
|
||||
label: 'MoonTV',
|
||||
href: 'https://github.com/senshinya/MoonTV',
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<SidebarContext.Provider value={contextValue}>
|
||||
{/* 在移动端隐藏侧边栏 */}
|
||||
|
||||
Reference in New Issue
Block a user