mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
chore: navigate to pages and disable topic for now
This commit is contained in:
@@ -78,15 +78,16 @@ const PageSectionHeader: React.FC<PageSectionHeaderProps> = ({ pageCount }) => (
|
|||||||
<div
|
<div
|
||||||
className={cn("flex min-h-[30px] items-center gap-px rounded-md", "hover:bg-accent hover:text-accent-foreground")}
|
className={cn("flex min-h-[30px] items-center gap-px rounded-md", "hover:bg-accent hover:text-accent-foreground")}
|
||||||
>
|
>
|
||||||
<Button
|
<Link
|
||||||
variant="ghost"
|
href="/pages"
|
||||||
className="size-6 flex-1 items-center justify-start rounded-md px-2 py-1 focus-visible:outline-none focus-visible:ring-0"
|
className="size-6 flex-1 items-center justify-start rounded-md px-2 py-1 focus-visible:outline-none focus-visible:ring-0"
|
||||||
>
|
>
|
||||||
<p className="flex items-center text-xs font-medium">
|
<p className="flex items-center text-xs font-medium">
|
||||||
Pages
|
Pages
|
||||||
{pageCount > 0 && <span className="text-muted-foreground ml-1">{pageCount}</span>}
|
{pageCount > 0 && <span className="text-muted-foreground ml-1">{pageCount}</span>}
|
||||||
</p>
|
</p>
|
||||||
</Button>
|
</Link>
|
||||||
|
|
||||||
<div className={cn("flex items-center gap-px pr-2")}>
|
<div className={cn("flex items-center gap-px pr-2")}>
|
||||||
<ShowAllForm />
|
<ShowAllForm />
|
||||||
<NewPageButton />
|
<NewPageButton />
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ const ListItem: React.FC<ListItemProps> = ({ label, value, href, count, isActive
|
|||||||
<div className="group/reorder-page relative">
|
<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
|
<Link
|
||||||
href={href}
|
href={"#"}
|
||||||
className={cn(
|
className={cn(
|
||||||
"group-hover/topic-link:bg-accent relative flex h-8 w-full items-center gap-2 rounded-md p-1.5 font-medium",
|
"group-hover/topic-link:bg-accent relative flex h-8 w-full items-center gap-2 rounded-md p-1.5 font-medium",
|
||||||
{ "bg-accent text-accent-foreground": isActive },
|
{ "bg-accent text-accent-foreground": isActive },
|
||||||
|
|||||||
Reference in New Issue
Block a user