chore: navigate to pages and disable topic for now

This commit is contained in:
Aslam H
2024-09-09 18:10:19 +07:00
parent 84ee3d0517
commit 407ef129e3
2 changed files with 5 additions and 4 deletions

View File

@@ -78,15 +78,16 @@ const PageSectionHeader: React.FC<PageSectionHeaderProps> = ({ pageCount }) => (
<div
className={cn("flex min-h-[30px] items-center gap-px rounded-md", "hover:bg-accent hover:text-accent-foreground")}
>
<Button
variant="ghost"
<Link
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"
>
<p className="flex items-center text-xs font-medium">
Pages
{pageCount > 0 && <span className="text-muted-foreground ml-1">{pageCount}</span>}
</p>
</Button>
</Link>
<div className={cn("flex items-center gap-px pr-2")}>
<ShowAllForm />
<NewPageButton />

View File

@@ -118,7 +118,7 @@ const ListItem: React.FC<ListItemProps> = ({ label, value, href, count, isActive
<div className="group/reorder-page relative">
<div className="group/topic-link relative flex min-w-0 flex-1">
<Link
href={href}
href={"#"}
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",
{ "bg-accent text-accent-foreground": isActive },