fix(sidebar): remove footer links (Privacy, Terms, Open Source)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,27 +1,20 @@
|
||||
'use client'
|
||||
|
||||
import { useState, useEffect } from 'react'
|
||||
import Link from 'next/link'
|
||||
import { usePathname, useSearchParams } from 'next/navigation'
|
||||
import { cn } from '@/lib/utils'
|
||||
import {
|
||||
Lightbulb,
|
||||
Bell,
|
||||
Tag,
|
||||
Archive,
|
||||
Trash2,
|
||||
Pencil,
|
||||
ChevronRight,
|
||||
Plus
|
||||
} from 'lucide-react'
|
||||
import { useLabels } from '@/context/LabelContext'
|
||||
import { useLanguage } from '@/lib/i18n'
|
||||
import { NotebooksList } from './notebooks-list'
|
||||
|
||||
export function Sidebar({ className, user }: { className?: string, user?: any }) {
|
||||
const pathname = usePathname()
|
||||
const searchParams = useSearchParams()
|
||||
const { labels } = useLabels()
|
||||
const { t } = useLanguage()
|
||||
|
||||
// Helper to determine if a link is active
|
||||
@@ -106,15 +99,6 @@ export function Sidebar({ className, user }: { className?: string, user?: any })
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Footer / Copyright / Terms */}
|
||||
<div className="mt-auto px-6 py-4 text-[10px] text-gray-400">
|
||||
<div className="flex gap-2 mb-1">
|
||||
<Link href="#" className="hover:underline">{t('footer.privacy')}</Link>
|
||||
<span>•</span>
|
||||
<Link href="#" className="hover:underline">{t('footer.terms')}</Link>
|
||||
</div>
|
||||
<p>{t('footer.openSource')}</p>
|
||||
</div>
|
||||
</aside>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user