mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
/ route for force graph, /links for links
This commit is contained in:
@@ -14,7 +14,7 @@ export const LinkSection: React.FC<{ pathname: string }> = ({ pathname }) => {
|
||||
})
|
||||
|
||||
const linkCount = me?.root.personalLinks?.length || 0
|
||||
const isActive = pathname === "/"
|
||||
const isActive = pathname === "/links"
|
||||
|
||||
if (!me) return null
|
||||
|
||||
@@ -39,7 +39,7 @@ const LinkSectionHeader: React.FC<LinkSectionHeaderProps> = ({ linkCount, isActi
|
||||
)}
|
||||
>
|
||||
<Link
|
||||
href="/"
|
||||
href="/links"
|
||||
className={cn(
|
||||
"size-6 flex-1 items-center justify-start rounded-md px-2 py-1",
|
||||
"focus-visible:outline-none focus-visible:ring-0",
|
||||
@@ -78,7 +78,7 @@ interface ListItemProps {
|
||||
const ListItem: React.FC<ListItemProps> = ({ label, href, count, isActive }) => {
|
||||
return (
|
||||
<div className="group/reorder-page relative">
|
||||
<div className="group/topic-link relative flex min-w-0 flex-1">
|
||||
{/* <div className="group/topic-link relative flex min-w-0 flex-1">
|
||||
<Link
|
||||
href={href}
|
||||
className={cn(
|
||||
@@ -94,7 +94,7 @@ const ListItem: React.FC<ListItemProps> = ({ label, href, count, isActive }) =>
|
||||
{count > 0 && (
|
||||
<span className="absolute right-2 top-1/2 z-[1] -translate-y-1/2 rounded p-1 text-sm">{count}</span>
|
||||
)}
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ const LogoAndSearch: React.FC = React.memo(() => {
|
||||
return (
|
||||
<div className="px-3">
|
||||
<div className="mt-2 flex h-10 max-w-full items-center">
|
||||
<Link href="/explore" className="px-2">
|
||||
<Link href="/" className="px-2">
|
||||
<Logo className="size-7" />
|
||||
</Link>
|
||||
<div className="flex min-w-2 grow flex-row" />
|
||||
|
||||
Reference in New Issue
Block a user